Tutorials > Program model > Web services > Create an outbound Web service client for WebSphere Commerce
Configure the WebSphere Commerce messaging system
In this step we will create a new message type for this tutorial and configure the new message type to point to the sample Web service.
Procedure
- Add the new message type to WebSphere Commerce by running the following SQL statement:
- INSERT INTO MSGTYPES (MSGTYPE_ID, MSGTDIR, NAME, VIEWNAME, DESCRIPTION) VALUES (1999, 1, 'com.mycompany.commerce.member', '', 'Member PushUser Customization');
- Start or restart the WebSphere Commerce Test Server.
- Add the WebServices(HTTP) transport.
- Open the WebSphere Commerce Admin Console and logon to the site.
- Select Configuration > Transports.
- Click Add.
- Select WebServices(HTTP).
- Click Add.
- Configure the Member PushUser Customization message type.
- Open the WebSphere Commerce Admin Console.
- Select Configuration > Message Types.
- Click New.
- Enter the following:
- Select com.mycompany.commerce.member from the Message Type drop down list.
- Transport: WebServices(HTTP).
- Device format: webservices
- Click Next.
- URL: http://localhost:81/MyCompanyMemberServices/services/MyCompanyMemberServices
- Click Finish.
- Add the component invocation file to the WebSphere Commerce Development server:
- Save the downloadable sample XML file, wc-invocation-client.xml, to WC_EAR\xml\config\ext\.global\com.mycompany.commerce.member\
You will need to create the directory structure for the destination file.
If you are using a Microsoft Windows operating system, you may encounter an error when attempting to create a directory name which begins with the . character (in this case, the .global directory). Therefore, create this directory using an alternative method to avoid receiving this error, such as using the command prompt to create the directory.
To create a directory using the command prompt:
This method will allow Microsoft Windows users to create the .global directory without receiving an error.
- Click the Start button and select Run.
- Type cmd and push Enter.
- Navigate to the desired directory using the cd command.
- Create the new directory using the md command.
- Restart the WebSphere Commerce Server.
After completing these steps, the WebSphere Commerce messaging system has been configured. The next step is to generate the sample MyCompanyMember member management system.