Previous Step   Previous Step

Explore the CEA web service sample application.

Map Step 14 towards the goal: Setting up and using the communications enabled application samples

About this task

To complete this set of tasks, you must know the WC_defaulthost port of the application server that is running the commsvc.ws.sample application.

To view the port numbers assigned to a given server, first visit the following WebSphere® Application Server administrative console page: Application servers > servername , where servername is the name of the application server; for example: server1. Then display the Ports table that is located in the Communications category of settings.

Before you begin

Simulate cobrowsing interactions to further explore the features of the CEA widgets.

Procedure

  1. Start the customer and customer service representative softphones.
  2. Start a new web browser instance and load the CEA web service sample page, http://hostname:port/commsvc.ws.sample/CommWebServiceServlet, where hostname is the host name or address of the application server, and port is the WC_defaulthost port of the application server; for example: http://localhost:9080/commsvc.ws.sample/CommWebServiceServlet.
  3. After the CEA web service Sample page opens, enter sip:CSR@hostname in the Phone address of record entry-field, where hostname is the host name or address of the application server that is running the sample IP PBX application; for example: sip:CSR@localhost.
  4. Click the Open session button to obtain control of the phone. A request is sent to the sample servlet, which calls the openSession web service API. It might take a few seconds to set up the session with the phone. A Phone Status page opens, presenting the following fields for monitoring and managing the phone: Address of record, Call status, Caller, Callee, and Call ID. You can click the Refresh call status button to obtain status updates that the sample servlet has received by way of WS-Notification.
  5. In the Peer address of record entry-field, enter sip:Customer@hostname, where hostname is the host name or address of the application server that is running the sample IP PBX application; for example: sip:Customer@localhost.
  6. Click the Make call button. The sample servlet invokes the makeCall web service API to create a call between the customer (sip:Customer@hostname) and the customer service representative (sip:CSR@hostname).
  7. After the customer service representative (X-Lite) softphone rings, answer the call.
  8. After the customer (Express® Talk Basic) softphone rings, answer the call.
  9. Click the Refresh call status button to view details about the call that is in progress.
  10. Click the End call button. The sample servlet invokes the endCall web service API to end the call.
  11. Finally, click the Close session button. The sample servlet invokes the closeSession web service API to terminate the phone monitoring session.

Previous Step   Previous Step


Terms of Use | Feedback

Last updated: Sep 19, 2011 6:13:59 PM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=matt&product=was-express-dist&topic=tcea_cea_getstart_step14
File name: tcea_cea_getstart_step14.html