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.
- Launch Rational Application Developer with
a new workspace.
- Import the sample or samples needed for the project.
- Click
- Follow the instructions on the Setup page of the Samples
Gallery to configure presence for use with external sources.
- Click
- 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.
- Click Finish.
- Use the sample presence.sample.rest.war to
test HTTP fetch and publish requests or customize it to make your
own REST interface.
- Right click presence.sample.rest.war and
select 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
- 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.