Develop > Presentation layer > Customize IBM Sales Center > WebSphere Commerce integration
Replace an existing Business Object Document reply message
Business Object Document (BOD) messages sent from the IBM Sales Center client to the WebSphere Commerce Server are mapped to WebSphere Commerce controller commands through the WebSphere Commerce message mapper. The WebSphere Commerce configuration file contains this message mapper entry. This section explains how to replace an existing Business Object Document reply message.
Procedure
- Create a new class that implements the ITelesalesResponseBuilder interface
- If you haven't ever done so before, create a response builder custom registry file. The following entry in the WebSphere Commerce configuration file file points to the response builder registry:
<component compClassName="com.ibm.commerce.telesales.configuration.TelesalesRegistryComponentConfiguration" enable="true" name="Telesales Response Builder Registry Configuration"> <property baseRegistryFileName="TelesalesRegistry.xml" baseRegistryFilePath="messaging" customRegistryFileName="" customRegistryFilePath="" display="false" enableBaseRegistryOverride="false"/> </component>
You can modify the customRegistryFileName and customRegistryFilePath attributes to point to a custom registry file. Ensure that enableBaseRegistryOverride is set to true. Entries in the custom registry will be combined with the entries in the base registry file. In the event that the same verb/noun pair is registered in both registry files, then the custom entry will be the one that is used. The base registry file for the IBM Sales Center is WC_EAR/xml/messaging/TelesalesRegistry.xml.
- Register the class in the response builder custom registry file. Entries in the custom registry file will override response builder registrations in the base registry file. Use the same format as in WC_EAR/xml/messaging/TelesalesRegistry.xml.
Related concepts
WebSphere Commerce integration
Related tasks
Add a new Business Object Document reply message
Map a new Business Object Document message to a new command
Map a modified Business Object Document message to a new or existing command
Modify an existing Business Object Document reply message
Related reference
IBM Sales Center Business Object Document response builders available by default
Related information
Business Object Documents long description