Use the xcap_get.sh request to retrieve stored documents.
Before you begin
Before using the XDMS client and XCAP requests, make sure that you
have JDK
1.6.0 SR 3 installed
and configured in your system path variables.
About this task
Determine the name and location of an XDM document you would like
to retrieve.
- Reach the command client by typing the following from the command
line:cd was_root/installableApps/xdms/client/
Note: was_root is
the installation root directory for
WebSphere® Application Server
Network Deployment.
By default, this directory is:
/usr/IBM/WebSphere/AppServer
/opt/IBM/WebSphere/AppServer
- Type the XCAP Get request.
./xcap_get.sh -user user_id -password password -output file_name XCAP_URL
For
example, to retrieve the sample TestResourceList.xml from the XDMS server
for example.com, type the following parameters on a single line../xcap_get.sh -user admin -password adminpassword -output samples/TestResourceList.xml http://example.com/services/resource-lists/users/sip:testuser@example.com/TestResourceList.xml
- Press Enter to send the request. The document
specified in the XCAP_URL for retrieval is stored locally as <file_name>.
In the example provided, the file is stored locally as samples/TestResourceList.xml.