Develop > Controller layer > Integrate with back-end systems and external applications > Inbound services > Program adapter


Add adapters

Adapters are added and configured in the WebSphere Commerce configuration file.

To add a new adapter, manually add it to the group of adapters in the WebSphere Commerce configuration file.

To add a new adapter:


Procedure

  1. Open the WebSphere Commerce configuration file.


  2. Locate the HttpAdapters XML element and add XML syntax similar to the following to define the adapter:

    <HttpAdapter
    enabled="true"
    deviceFormatType="device format"
    deviceFormatTypeID="deviceFormatTypeID"
    deviceFormatId="#"
    name="name"
    factoryClassname="class implementing HttpAdapterFactory"> 
    

    .... 
    

    </HttpAdapter>
    

    Use the same value for the deviceFormatTypeID and the deviceFormatID.

    Depending on the factoryClassname you may need to add different child elements.

  3. Restart WebSphere Commerce.


Results

The preceding example would be used to add a program adapter.

To add a different type of adapter, modify the class implementation accordingly. In the example, HttpAdapterFactory is the class implementation.


Related concepts

Integrate with back-end systems and external applications


+

Search Tips   |   Advanced Search