Configuring the Program Adapter

The program adapter is configured using the WebSphere Commerce configuration file. The program adapter entry is used to define the adapter.


  1. Open the WebSphere Commerce configuration file.
  2. Ensure the entry for the program adapter looks similar to the following:
    <HttpAdapter deviceFormatTypeId="-10000"
       <SessionContextConfig />
      <Configuration supportedMessageMappers="WCS.SOAPINTEGRATION, WCS.INTEGRATION"
       supportedMethods="POST, M-POST"
       supportedContentTypes="text/xml, text/xml; charset=UTF-8, text/xml-SOAP, text/xml; charset=utf-8"
       supportedCharacterEncoding="ISO8859-1, UTF-8, utf-8"/>
  3. Ensure that the information in the ProgramAdapter element defines the configuration of the program adapter, defining which message mappers it uses, the supported content-types, and other request attributes that distinguish the request as an XML over HTTP request. In the example in step 2, the message mapper WCS.SOAPINTEGRATION will be called first to identify an incoming message if the message mapper is enabled. If it cannot be matched with a predefined message mapping definition, the program adapter will call the message mapper WCS.INTEGRATION to try to identify the message again. All attributes of the Configuration element are mandatory.