Tutorials > Program model > Web services > Create an outbound Web service client for WebSphere Commerce

< Previous | Next >


Deploy and validating the MyCompanyMember client

In this step, you test the integration completed in the preceding steps by registering a user in the ConsumerDirect sample store. This generates and transmits a message with user registration information to the sample Web service.


Procedure

  1. Add the MyCompanyMemberDataObjects project to the WC application.

    1. In the Enterprise Explorer view, expand Enterprise Applications > WC project.

    2. Open the Deployment Descriptor.

    3. Select the Module Tab.

    4. Under Project Utility JARs, click Add.

    5. Select MyCompanyMemberDataObjects.

    6. Click Finish.

    7. Save the file.

  2. Reference the MyCompanyMemberDataObjects project from the Stores manifest file.

    1. In the Enterprise Explorer view, expand Stores > WebContent > META-INF folder.

    2. Right-click on the MANIFEST.MF file

    3. Select Open with > JAR Dependency Editor.

    4. Under Dependencies, select MyCompanyMemberDataObjects.jar.

    5. Save the file.

  3. Start or restart WebSphere Commerce Server.

  4. If the WC and MyCompanyMemberServicesEAR projects are not already published to the WebSphere Commerce Test Server, ensure both projects are published:

    1. On the Server page, right-click the WebSphere Commerce Test Server and select Add and Remove Projects.

    2. Select the WC and MyCompanyMemberServicesEAR projects.

    3. Click Add.

    4. Click Finish.

    If the WC or MyCompanyMemberServicesEAR projects are already added, right-click the WebSphere Commerce Test Server and select Publish.

  5. Set up a TCP/IP monitor in WebSphere Commerce Developer. You will use this TCP/IP monitor to observe the request and response messages travelling between WebSphere Commerce and the external member management system.

    1. Select Window > Preferences.

    2. From the Preferences panel select Run/Debug > TCP/IP Monitor.

    3. Click Add.

    4. Type the following information:

      • Local monitoring port:81.

      • Hostname:localhost.

      • Port:80

      • Type:TCP/IP

    5. Click OK.

    6. Select the created TCP/IP monitor.

    7. Click Start.

    8. Click OK.

  6. Open http://localhost/webapp/wcs/stores/servlet/ConsumerDirect/index.jsp in a Web browser.

  7. Click Sign In.

  8. Click Register.

  9. Enter test data in the required fields.

  10. Click Submit.

  11. From the TCP/IP Monitor, you can review the request and response BOD messages sent between the client and server as part of the test.

< Previous | Next >


+

Search Tips   |   Advanced Search