Tutorials > Program model > Web services


Next >


Tutorial: Creating a new WebSphere Commerce BOD service module

Attention: This tutorial is currently under revision. The content might contain errors or inaccuracies. Subscribe to this page to be notified when an updated version is available.

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 provided by the tutorial store is Get, Change and Process.

The BOD command framework is an implementation of the business logic layer, that deals with business object documents, and their Java representation, logical service data objects (SDOs). You are implementing the Get, Change, and Process design patterns in the BOD command framework. For more information see the following topics:

You can use the Get service to retrieve store information based on a XPath search expression. The tutorial will demonstrate how to support the following XPath expressions:

The Change service updates a Store description. This tutorial implements the following change actions:

The Process service initiates a business process for the tutorial store. For this tutorial we will implement the following process actions:

For the purpose of this tutorial, the definition of the TutorialStore noun contains the information listed in the table below. The table displays the access profile that includes this information for the above XPath expressions:

Data Description Applicable Access Profiles
Store identifier information Information to uniquely identify the store. Summary, Detail
Store description Description information about the store. Detail
State Whether the store is "Open", "Closed" or "Suspended." Summary, Detail
Store category The category of the store, such as B2C or B2B. Summary, Detail
Inventory system The inventory system used by the store. Detail
Store directory The store directory that contains the file resources associated with the store. Summary, Detail
Supported languages The languages supported by the store. Detail
Supported currencies The currencies supported by the store. Detail

The assets created during this tutorial are represented in the following diagram. As you progress through the tutorial, we will see different versions of the diagram, with the relevant asset for the current lesson highlighted.


Learning objectives

The learning objectives for the tutorial are:


Time required

This tutorial should take approximately 120 minutes to finish. If you explore other concepts related to this tutorial, it could take longer to complete.


Skill level

Advanced


Audience

This tutorial is intended for WebSphere Commerce developers who are responsible for creating and customizing WebSphere Commerce services.


System requirements

Before beginning this tutorial ensure that you have fulfilled the following prerequisites:


Prerequisites

Attention: When you use RAD to generate the Java artifacts, by default EMF 2.4 is chosen.

To work with WebSphere Commerce v7, explicitly select EMF 2.2 while you generate the Java artifacts. Refer to Set an EMF genmodel to generate 2.2 compatible objects for more information. To complete this tutorial you should be familiar with the following terms and concepts:


Lessons in this tutorial

Next >


+

Search Tips   |   Advanced Search