Configure WebSphere Commerce to communicate with a procurement system (Enterprise)
In order for WebSphere Commerce to communicate with a procurement system, the following steps need to be implemented for all procurement system protocols:
- Capture the procurement protocol and system information in the
PROCSYS and
PROCPROTCL database tables by doing the following:
- Add the name of the procurement system and any customizable data to the PROCSYS database table.
- Add the procurement protocol name, version, communication type, authentication type, and other protocol specific attributes in the
PROCPROTCL database table.The following SQL statements are examples of using the Ariba cXML protocol version 1.0:
insert into procsys values ('Ariba', null, null); insert into procprotcl (procprotcl_id, procsysname, protocolname, version, authtype, twostepmode, classifdomain, uomstandard) values (1, 'Ariba', 'cXML', '1.0', 1, 'Y', 'UNSPSC', NULL);The following additional steps are needed for procurement protocols that use XML/HTTP:
- Add a new message mapper for procurement. This example assumes that the message mapper name is WCBE.ARIBA.
- In the WebSphere Commerce configuration file, update the configuration entry for the XML/HTTP adapter by adding the new message mapper. For the Ariba cXML message mapper, the adapter configuration entry would be updated as follows:
<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; charset=UTF-8, text/xml-SOAP" supportedMessageMappers="WCBE.ARIBA, WCS.INTEGRATION" supportedCharacterEncoding="ISO8859-1, UTF-8" /> </ProgramAdapter> </HttpAdapter> </HttpAdapters>Note: Any content types and encoding used by the procurement system buyer side tools must be listed in the supportedContentTypes and supportedCharacterEncoding attributes.
- Create an entry in the
DEVICEFMT table for the new message mapper. The DEVICEFMT_ID is the summation of the HTTP adapter deviceFormatId, and the messageMapperId. For the Ariba example, the DEVICEFMT_ID is -10003. The DEVICEFMT_ID is used in the Struts configuration file for different view tasks for different protocols.(C) Copyright IBM Corporation 1996, 2006. All Rights Reserved.