WebSphere brand IBM WebSphere XML Document Management Server, Version 7.0

Adding and editing documents

Use the xcap_put.sh request to add or edit documents from the command line interface.

Before you begin
Before using the XCAP client to submit XCAP request to IBM® XDMS, make sure that you have JDK1.6.0 SR 3 from IBM, installed and configured in your system path variables.
About this task
Create or edit an XML document that is of a type managed by one of the AUIDs on your IBM XDMS, or use of the example documents located in the was_root/installableApps/xdms/client/ directory.
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
  1. Reach the command client by typing the following from the command line:cd was_root/installableApps/xdms/client/
  2. To use the XCAP client to submit a Put request, issue the following command:
    ./xcap_put.sh -user user_id -password password -filename file_name -content_type mime-type XCAP_URI
    or example, to put the sample TestResourceList.xml to the XDMS server for the user testuser@example.com, type the following parameters on a single line:
    ./xcap_put.sh -user admin -password adminpassword -filename samples/TestResourceList.xml -content_type application/resource-lists+xml http://example.com:9080/services/resource-lists/users/sip:testuser@example.com/TestResourceList.xml
  3. Run the command to send the request. If the request was to put a new document, it now appears in the specified directory. If the request used a Node Selector to send an update to a document, the new content now appears in the specified document.



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