Develop > Presentation layer > Customize IBM Sales Center > Service request handlers


Add a new service request handler

The IBM Sales Center service request extension point is the mechanism by which requests are made of the server and the request results are handled and the model is updated. The class that constructs the request and interprets the response is the request handler. This section explains how to add a new service request handler.

To send a new Business Object Document (BOD) message to the server:


Procedure

  1. Provide an implementation of the ITelesalesRequestHandler interface by extending the TelesalesRequest class. This class is responsible for creating the BOD and interpreting the response. Refer to the API documentation for TelesalesRequest for more information about extending this class.

  2. Register the new implementation of the ITelesalesRequestHandler interface by creating an extension definition of the service requests extension point. For example:

    <?xml version="1.0" encoding="UTF-8"?>
    <?eclipse version="3.0"?>
    <plugin>   
    <extension
    point="com.ibm.commerce.telesales.configurator">      
    <configurator path="config"/>   
    </extension>   
    <extension
    point="com.ibm.commerce.telesales.core.serviceRequests">   
    <!-- Logon -->      
    <serviceRequest
                label="Logon"
               
    requestHandlerClass="extensions.ExtendedProcessLogonRequest"
                id="extensions.logon"
               
    commServiceId="com.ibm.commerce.telesales.services.TsCommunication">      
    </serviceRequest>   
    </extension>
    </plugin>
    


Related concepts

Service request handlers


Related tasks

Add a communication service

Replace an existing service request handler

Extend an existing service request handler


Related information

Business Object Documents long description


+

Search Tips   |   Advanced Search