Implementing the MyCompanyMember client API
In the lesson, you create the MyCompanyMember client API in the WebSphereCommerceServerExtensionsLogic project. This API uses the SDOs generated in the previous step to send request messages and handle response messages.
About this task
The API consists of the following artifact:
- MyCompanyMemberFacadeClient
- Uses MyCompanyPushUserInvocationServiceObjectImpl to convert the request SDO (PushUser) to the request xml.
- Instructs the WebSphere Commerce messaging system to transmit the message.
- Use MyCompanyPushUserConfirmationInvocationServiceObjectImpl to convert the response xml to the response SDO (PushUserConfirmation).
To implement the API:
Procedure
- Update the build path for the WebSphereCommerceServerExtensionsLogic project
to reference the MyCompanyMemberDataObjects project.
- In the Enterprise Explorer view, right-click the WebSphereCommerceServerExtensionsLogic project.
- Select Properties.
- In the left pane, select Java Build Path.
- In the center pane, select the Projects tab.
- Click Add.
- Select the MyCompanyMemberDataObjects project.
- Click .
- Create the MyCompanyMemberClientFacade class to transmit
the request message.