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

< Previous | Next >


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

  1. Add the new message type to WebSphere Commerce by running the following SQL statement:

    1. INSERT INTO MSGTYPES (MSGTYPE_ID, MSGTDIR, NAME, VIEWNAME, DESCRIPTION) VALUES (1999, 1, 'com.mycompany.commerce.member', '', 'Member PushUser Customization');

  2. Start or restart the WebSphere Commerce Test Server.

  3. Add the WebServices(HTTP) transport.

    1. Open the WebSphere Commerce Admin Console and logon to the site.

    2. Select Configuration > Transports.

    3. Click Add.

    4. Select WebServices(HTTP).

    5. Click Add.

  4. Configure the Member PushUser Customization message type.

    1. Open the WebSphere Commerce Admin Console.

    2. Select Configuration > Message Types.

    3. Click New.

    4. Enter the following:

      1. Select com.mycompany.commerce.member from the Message Type drop down list.

      2. Transport: WebServices(HTTP).

      3. Device format: webservices

      4. Click Next.

      5. URL: http://localhost:81/MyCompanyMemberServices/services/MyCompanyMemberServices

      6. Click Finish.

  5. Add the component invocation file to the WebSphere Commerce Development server:

    1. 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:

      1. Click the Start button and select Run.

      2. Type cmd and push Enter.

      3. Navigate to the desired directory using the cd command.

      4. Create the new directory using the md command.
      This method will allow Microsoft Windows users to create the .global directory without receiving an error.

  6. 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.

< Previous | Next >


+

Search Tips   |   Advanced Search