public class TsCommunication extends java.lang.Object implements ITelesalesCommService
Overview:
The IBM Sales Center Communication Class contains all methods needed for communicating between components (server and client). For example, sending documents from the IBM Sales Center to the server's Web service.
With a document object as input, the communication class is used to create a service connection from the source component to the target component. WAS tooling creates stubs for the client. These stubs facilitate the use of JAX/RPC-based SOAP protocol and HTTPS(or optionally HTTP) transport to send the document to the target component. At the server service, the request document is processed and a response document is synchronously returned to the client. This class should support all client-server communication needs.
This service is registered with the commService extension point with the following id: com.ibm.commerce.telesales.services.TsCommunication.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
TsCommunication()
The TsCommunication object contains all aspects of the communication between the client and the Web services with which it communicates.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String | bodServiceSend(com.ibm.commerce.telesales.services.ws.ActivityToken token, java.lang.String reqBOD)
Sends a BOD to the appropriate Web service; called from sendBod().
|
TsConversation | getConversationManager()
Returns the conversation manager.
|
java.lang.String | getHostName()
Returns the host name.
|
java.lang.String | getPortNumber()
Returns the port number.
|
boolean | getSSLEnabled()
Returns the SSL indicator.
|
com.ibm.commerce.telesales.services.ws.TelesalesBaseServiceSoap_Stub | getTelesalesBaseServiceProxy()
Returns the IBM Sales Center Web service client stub.
|
java.lang.String | getTimeout()
Returns the timeout.
|
TsToken | getTokenManager()
Returns the activity token manager.
|
protected java.lang.String | getVersionInfo()
Returns the version information for all the registered bundled features.
|
protected void | initHost()
Initializes the host name and port number.
|
protected java.lang.String | invokeSSOWebService(ServiceContext sc, com.ibm.commerce.telesales.services.ws.ActivityToken token)
Invokes the Single Sign-On Web service, retrieves the SSO token and returns it; called by sendRequest().
|
java.lang.Object | send(ServiceContext serviceContext, java.lang.Object message)
Sends the request message and returns the response.
|
protected java.lang.String | sendBOD(ServiceContext serviceContext, java.lang.String sndDoc, com.ibm.commerce.telesales.services.ws.ActivityToken token)
Sends a BOD to the appropriate Web service; called by sendRequest().
|
java.lang.String | sendRequest(ServiceContext serviceContext, java.lang.String sndDoc)
Sends a request to the appropriate Web service that is servicing the request.
|
protected void | sendVersionInfo(ServiceContext serviceContext, java.lang.String versionInfo, com.ibm.commerce.telesales.services.ws.ActivityToken token)
Sends the version values of the registered bundled features to the Web service; called by sendRequest().
|
void | setHostName(java.lang.String hostName)
Sets the host name.
|
void | setPortNumber(java.lang.String portNumber)
Sets the port number.
|
void | setSSLEnabled(boolean fSSLEnabled)
Sets the SSL indicator.
|
public static final java.lang.String COPYRIGHT
public TsCommunication()
public com.ibm.commerce.telesales.services.ws.TelesalesBaseServiceSoap_Stub getTelesalesBaseServiceProxy()
public TsToken getTokenManager()
public TsConversation getConversationManager()
public java.lang.String getHostName()
public void setHostName(java.lang.String hostName)
public java.lang.String getPortNumber()
public boolean getSSLEnabled()
public java.lang.String getTimeout()
public void setPortNumber(java.lang.String portNumber)
public void setSSLEnabled(boolean fSSLEnabled)
protected void initHost()
public java.lang.Object send(ServiceContext serviceContext, java.lang.Object message) throws TelesalesServicesException
public java.lang.String sendRequest(ServiceContext serviceContext, java.lang.String sndDoc) throws TelesalesServicesException
protected java.lang.String bodServiceSend(com.ibm.commerce.telesales.services.ws.ActivityToken token, java.lang.String reqBOD) throws com.ibm.commerce.telesales.services.ws.ServiceException, java.lang.Exception
protected java.lang.String sendBOD(ServiceContext serviceContext, java.lang.String sndDoc, com.ibm.commerce.telesales.services.ws.ActivityToken token) throws TelesalesServicesException
protected java.lang.String invokeSSOWebService(ServiceContext sc, com.ibm.commerce.telesales.services.ws.ActivityToken token) throws TelesalesServicesException
protected void sendVersionInfo(ServiceContext serviceContext, java.lang.String versionInfo, com.ibm.commerce.telesales.services.ws.ActivityToken token) throws TelesalesServicesException
protected java.lang.String getVersionInfo()