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.
Procedure
- Add the MyCompanyMemberDataObjects project to the WC application.
- In the Enterprise Explorer view, expand Enterprise Applications > WC project.
- Open the Application Deployment Descriptor Editor.
- Select Manage Utility JARs.
- Select MyCompanyMemberDataObjects.
- Click Finish.
- Save the file.
- Reference the MyCompanyMemberDataObjects project from the
Stores manifest file.
- In the Enterprise Explorer view, expand Stores > WebContent > META-INF folder.
- Right-click the MANIFEST.MF file
- Select Open with > JAR Dependency Editor.
- Under Dependencies, select MyCompanyMemberDataObjects.jar.
- Save the file.
- Start or restart the WebSphere Commerce Server.
- If the WC and MyCompanyMemberServicesEAR
projects are not already published to the WebSphere Commerce Test
Server, ensure that both projects are published:
- On the Server pane, right-click the WebSphere Commerce Test Server and select Add and Remove Projects.
- Select the WC and MyCompanyMemberServicesEAR projects.
- Click Add.
- Click Finish.
If the WC or MyCompanyMemberServicesEAR projects are already added, right-click the WebSphere Commerce Test Server and select Publish.
- 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.
- Select Window > Preferences.
- From the Preferences panel select Run/Debug > TCP/IP Monitor.
- Click Add.
- Type the following information:
- Local monitoring port: 81.
- Hostname: localhost.
- Port: 80
- Type: TCP/IP
- Click OK.
- Select the created TCP/IP Monitor.
- Click Start.
- Click OK.
- Open http://localhost/webapp/wcs/stores/servlet/Madisons/index.jsp in a web browser.
- Click Sign In.
- Click Register.
- Enter test information in the required fields.
- Click Submit.
- 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.