WebSphere brand IBM WebSphere XML Document Management Server, Version 7.0

Retrieving documents

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 JDK1.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.
  1. 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:
    • AIX /usr/IBM/WebSphere/AppServer
    • Linux /opt/IBM/WebSphere/AppServer
  2. 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
  3. 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.



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