WebSphere brand IBM WebSphere Presence Server, Version 7.0

Running the SIP sample

The SIP sample is a J2EE Web application, accessed through a Web browser.

About this task

The default context root is /sample/.

To access the sample application, you will need to use a Web browser–either Internet Explorer or Firefox.

  1. Install the REST sample application and configure it to send HTTP requests to the SIP sample:
    1. Follow the instructions in the topic Installing and configuring the REST API sample to install the sample.
    2. Set the value of the restAddress configuration parameter to the full URI for the SIP sample. Example: http://sip.sample.server.address:9080/sample/
  2. Open the Web browser and enter the REST sample URL. Example: http://server.address:9080/gui/
  3. From the actions listed in the right frame, choose whether you want to publish or fetch.
  4. In the Publish page you can do the following:
    • Set the publish document.
    • Set the user URI name that will be used for the publisher and published users.
    • Publish the document if this is the first document.
    • Modify the document if you have already published information.
    • Delete the document if you have already published information.
    • View the Status of the last request, for example the return code and the Etag number.
  5. In the Fetch page you can do the following:
    • Send a fetch request for a single user.
    • View the fetch response (the user information) in the main text box.
    Note: The SIP sample does not support subscriptions on lists. You cannot, therefore, select the option of sending a fetch request for a list.



Terms of use
(C) Copyright IBM Corporation 2009. All Rights Reserved.