Tutorial: Creating the Get TutorialStore web service
In this tutorial, you follow the development of a sample service module, TutorialStore, based on the concept of a store in WebSphere Commerce version 7. The services that are provided by the tutorial store are Get and Process services. In this part of the tutorial, the Get service is used to retrieve store information that is based on a search expression.
Learning objectives
The tutorial demonstrates how to support the following XPath expressions.- Find store by store ID: /Store[StoreIdentifier[UniqueID='123']]
- Find store by name: /Store[StoreIdentifier[ExternalIdentifier[NameIdentifier='StoreName']]]
- Retrieve all stores: /Store
For this tutorial, the definition of the TutorialStore contains the information that is listed in the table below. The table shows the access profile that includes this information for the preceding XPath expressions.
Data | Description | Applicable Access Profiles |
---|---|---|
Store identifier information | Information to uniquely identify the store. | Summary, Detail, All |
Store description | Description information about the store. | Detail, All |
State | Whether the store is "Open", "Closed" or "Suspended." | Detail, All |
Store category | The category of the store, such as B2C or B2B. | Detail, All |
Inventory system | The inventory system that is used by the store. | Detail, All |
Store relationship | The store directory that contains the file resources that are associated with the store. | Detail, All |
Supported languages | The languages that are supported by the store. | All |
Support currencies | The currencies that are supported by the store. | All |
Fulfillment center | The fulfillment center that is associated with the store. | All |
Time required
Expect this tutorial to take 2 hours to complete.
Skill Level
Advanced.
Audience
This tutorial is intended for WebSphere Commerce developers who are responsible for creating and customizing WebSphere Commerce services.
Prerequisites
Before you begin this tutorial, ensure that you fulfill the following prerequisites:
- Installed WebSphere Commerce version 7.
- Install WebSphere Commerce Developer
- Setting up the development environment for creating WebSphere Commerce services
- Installed the Java Emitter Template (JET) package by using the IBM Installation Manager.
- Extracted the tutorial sample code, TutorialStore.zip, to a temporary location on your hard drive.
Prerequisite knowledge
To complete this tutorial, ensure that you are familiar with the following terms and concepts:
- Eclipse plug-ins
- The Java programming language
- Rational Application Developer
- How to import code into Rational Application Developer
- XML and related XML technologies such as XSD
- Registering commands with WebSphere Commerce
- Running SQL scripts against a relational database