Create the client library

Create a new client library involves using the Design Pattern Toolkit and the ComponentProjects design pattern to create the template client code, and then opening and further customizing the generated class. Prerequisites

  1. Install the Design Pattern Toolkit and the ComponentProjects design pattern.

  2. Create a WebSphere Commerce service module.

To create the client library:

  1. Start WebSphere Commerce Developer.

  2. Go to the MyServiceModule-Client project.

  3. Open the MyServiceModuleFacadeClient.java class.

  4. Add your programming-friendly API for Java programs to use. For example, you might add code to the build MyBusinessObject method.

  5. Add your Web enablement methods to make the service available through the URL.

  6. (Optional) Add your
    Tag: getData configuration to use the client with the
    WebSphere Commerce foundation tag library for OAGIS base Get services.

    The following example gets the order object for the current shopping cart and assigns it to a variable called "order".

    <wcf:getData
    type="com.ibm.commerce.order.facade.datatypes.OrderType"var="order"
    
    expressionBuilder="findCurrentShoppingCart">
    <wcf:contextData name="storeId" data="10001" />
    <wcf:param name="accessProfile"
    value="WC_OrderDetailsProfile" />
    </wcf:getData>
    

Related concepts

Client library for WebSphere Commerce services
Web enablement for the client library
WebSphere Commerce services
Client library enablement for Struts

Related tasks

Deploying the client library
Extending the client library


Related Reference


WebSphere Commerce foundation tag library