Configuring the Program Adapter

The program adapter is configured using the instance_name.xml configuration file. The program adapter entry is used to define the adapter. Configure the program adapter by doing the following:

  1. In the instance_name.xml configuration file, ensure the entry for the program adapter looks similar to the following:
    <HttpAdapters display="false">
        <HttpAdapter deviceFormatTypeId="-10000"
            enabled="true"
            deviceFormatId="-10000"
            deviceFormatType="XmlHttp"
            factoryClassname="com.ibm.commerce.programadapter.HttpProgramAdapterImpl"
            name="XML/HTTP">
        <ProgramAdapter>
        <SessionContext         
      class="com.ibm.commerce.messaging.programadapter.security.
                   CredentialsSpecifiedProgramAdapterSessionContextImpl">
        <SessionContextConfig />
        </SessionContext>
        <Configuration supportedMethods="POST, M-POST"
            supportedContentTypes="text/xml, text/xml-SOAP"
            supportedMessageMappers="WCS.INTEGRATION"
            supportedCharacterEncoding="ISO8859-1, UTF-8" />
        </ProgramAdapter>
        </HttpAdapter>
    </HttpAdapters>
    
  2. Ensure that the information found between the ProgramAdapter nodes 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.