You can manage WS-Policy settings for Web service resources by using wsadmin scripting. You can view or manage how a service provider shares its policies, and how a service client obtains and applies the policies of a service provider.
To run these commands, use the AdminTask object of the wsadmin scripting client. Each command acts on multiple objects in one operation. The commands are provided to allow you to make the most commonly-required types of update in a consistent manner, where modifying the underlying objects directly would be error-prone.
The wsadmin scripting client is run from Qshell. For more information, see the topic "Configure Qshell to run WebSphere® Application Server scripts".
These commands are valid only when they are used with WebSphere Application Server Version 7 and later application servers. Do not use them with earlier versions.
The commands to manage WS-Policy settings for Web service resources are part of the PolicySetManagement command group for the AdminTask object.
print AdminTask.help('PolicySetManagement')
print AdminTask.help('command_name')
AdminConfig.save()
The commands that are listed as subtopics are available to manage WS-Policy settings in the PolicySetManagement group of the AdminTask object.