Configuring the WebSphere Commerce messaging system

In this lesson, you create a 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. Activate the web services over HTTP transport.
    1. Open the WebSphere Commerce Admin Console and logon to the site.
    2. Select Configuration > Transports.
    3. Select Web services over HTTP.
    4. Click Change Status.
  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 information for the message type:
      1. Select com.mycompany.commerce.member from the Message Type drop-down list.
      2. Transport: Web services over (HTTP).
      3. Device format: webservices
      4. Click Next.
      5. URL: http://localhost:81/MyCompanyMemberServices/MyCompanyMemberServices
      6. If required, enter the user name and password for use in the service requests.
      7. Click Finish.
  5. Add the component invocation file to the WebSphere Commerce Development server:
    1. Create the directory WC_eardir\xml\config\com.mycompany.commerce.member-ext
    2. In the com.mycompany.commerce.member-ext directory, right-click and select New > File. Name the file SDO.properties
    3. Open the file for editing. Add the following code to the file:
      #-----------------------------------------------------------------
      # Licensed Materials - Property of IBM
      #
      # WebSphere Commerce
      #
      # (C) Copyright IBM Corp. 2011 All Rights Reserved.
      #
      # US Government Users Restricted Rights - Use, duplication or
      # disclosure restricted by GSA ADP Schedule Contract with
      # IBM Corp.
      #-----------------------------------------------------------------
      
      com.mycompany.commerce.member.facade.datatypes.impl.MemberPackageImpl
    4. Save and close the file.
    5. In the com.mycompany.commerce.member-ext directory, right-click and select New > File. Name the file wc-component-client.xml
    6. Open the file for editing. Add the following code to the file:
      <?xml version="1.0" encoding="UTF-8"?>
      
      <!--
       =================================================================
        Licensed Materials - Property of IBM
      
        WebSphere Commerce
      
        (C) Copyright IBM Corp. 2011 All Rights Reserved.
      
        US Government Users Restricted Rights - Use, duplication or
        disclosure restricted by GSA ADP Schedule Contract with
        IBM Corp.
       =================================================================
      -->
      <_config:DevelopmentClientConfiguration xmlns:_config="http://www.ibm.com/xmlns/prod/commerce/foundation/config"
      	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      	xsi:schemaLocation="http://www.ibm.com/xmlns/prod/commerce/foundation/config ../xsd/wc-component-client.xsd">
      	<_config:invocationservice>
      	
      		<_config:invocationbinding
      				bindingImpl="com.ibm.commerce.foundation.internal.client.services.invocation.impl.JCAInvocationBindingImpl">
      		</_config:invocationbinding>
      		
      		<_config:action name="CreateUser" asynchronous="false">
      		</_config:action>
      		<_config:action name="UpdateUser" asynchronous="false">
      		</_config:action>
      		
      	</_config:invocationservice>	
      </_config:DevelopmentClientConfiguration>
    7. Save and close the file.
  6. Restart the WebSphere Commerce Server.

What to do next

After you complete these steps, the WebSphere Commerce messaging system is configured. The next step is to generate the sample MyCompanyMember member management system.