WebSphere brand IBM WebSphere XML Document Management Server, Version 7.0

Adding new policy documents

Add new policy documents using the xcap_put.sh request.

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
Create or edit an XDM policy document and post it to the XDMS.
  1. Reach the command client by typing the following from the command-line directory: 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 Put request.
    ./xcap_put.sh -user user_id -password password -filename file_name -content_type application/auth-policy+xml XCAP_URL
    For example, to post a Resource List policy document name resourcelistspolicy.xml to the XDMS server for example.com, type the following parameters on a single line.

    ./xcap_put.sh -user admin -password adminpassword -filename path/resourcelistspolicy.xml -content_type application/auth-policy+xml http://example.com/services/com.ibm.resource-lists-acls/global/resourcelistspolicy.xml
  3. Press Enter to send the request. The new policy document is posted to the XDMS in the specified location – in this case, the global directory to protect the document named resourcelistspolicy.xml.
What to do next
Policy documents can be retrieved or deleted using the XCAP Get and XCAP Delete commands.



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