WebSphere brand IBM WebSphere Presence Server, Version 7.0

Starting a custom REST project

The first step toward deploying a REST interface is to set up a custom REST project in the Rational® Application Developer workspace.

About this task
Follow these instructions to set up your custom REST project.
  1. Launch Rational Application Developer with a new workspace.
  2. Import the sample or samples needed for the project.
    1. Click Help > Samples > Technology samples > Telecom Enablement Feature > Telecom Enablement Samples > Presence
    2. Follow the instructions on the Setup page of the Samples Gallery to configure presence for use with external sources.
    3. Click Help > Samples > Technology samples > Telecom Enablement Feature > Telecom Enablement Samples > Presence
    4. Click Import Presence REST
      Note: Select the sample for use with WebSphere® Application Server 7.0.0.1 or 6.1.0.21, depending on your server configuration.
    5. Click Finish.
  3. Use the sample presence.sample.rest.war to test HTTP fetch and publish requests or customize it to make your own REST interface.
  4. Right click presence.sample.rest.war and select Run > Run on Server to launch the sample REST Web interface. Alternatively, use a Web browser to point to the REST Web interface using the address which ends in /gui–for example, http://localhost:9081/gui
  5. Expand the presence.sample.rest.war folder to locate the Readme file, which contains further instructions for developing and deploying a REST interface. The Readme file includes configuration instructions for making the REST sample work with the SIP sample.



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