Deploying and validating the MyCompanyMember client

In this lesson, you test the integration that is completed in the preceding steps by registering a user in your store. This registration generates and transmits a message with user registration information to the sample web service.


  1. Add the MyCompanyMemberDataObjects project to the WC application.
    1. In the Enterprise Explorer view, expand Enterprise Applications > WC project.
    2. Open the Application Deployment Descriptor Editor.
    3. Select Manage Utility JARs.
    4. Select MyCompanyMemberDataObjects.
    5. Click Finish.
    6. 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 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 the WebSphere Commerce Server.
  4. If the WC and MyCompanyMemberServicesEAR projects are not already published to the WebSphere Commerce Test Server, ensure that both projects are published:
    1. On the Server pane, 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 use this TCP/IP Monitor to observe the request and response messages that are traveling 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/Madisons/index.jsp in a web browser.
  7. Click Sign In.
  8. Click Register.
  9. Enter test information 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.