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. Configure the program adapter by doing the following:

  1. Open the WebSphere Commerce configuration file.
  2. Ensure the entry for the program adapter looks similar to the following:
    <HttpAdapter deviceFormatTypeId="-10000"
     enabled="true"
     deviceFormatType="XmlHttp"
     deviceFormatId="-10000"
     name="XML/HTTP"
     factoryClassname="com.ibm.commerce.programadapter.HttpProgramAdapterImpl">
       <ProgramAdapter>
      <SessionContext 
                     class="com.ibm.commerce.messaging.programadapter.security.CredentialsSpecifiedProgramAdapterSessionContextImpl">
       <SessionContextConfig />
      </SessionContext>
      <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"/>
       </ProgramAdapter>
    </HttpAdapter>
    
  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.All attributes of the Configuration element are mandatory.

Feedback