+

Search Tips   |   Advanced Search

WS-Policy commands (AdminTask)

Manage WS-Policy settings for web service resources by using wsadmin scripting. We 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.

(iseries) 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 (AdminTask).

For a list of the available policy set management administrative commands, plus a brief description of each command, enter the following command at the wsadmin prompt:

print AdminTask.help('PolicySetManagement')

For overview help on a given command, enter the following command at the wsadmin prompt:

print AdminTask.help('command_name')

After using these commands, save the changes to the master configuration. For example, use the following command:

  • AdminConfig.save()

    The commands listed as subtopics are available to manage WS-Policy settings in the PolicySetManagement group of the AdminTask object.


    Subtopics

    • getProviderPolicySharingInfo command
      Use the getProviderPolicySharingInfo command to find out whether an application or service that is a web service provider can share its policy configuration, and list the properties that apply to sharing that configuration.

    • setProviderPolicySharingInfo command
      Use the setProviderPolicySharingInfo command to set how an application or service that is a web service provider can share its policy configuration with other clients, service registries, or services that support the WS-Policy specification. We can set or remove this information about how a provider policy is shared.

    • getClientDynamicPolicyControl command
      Use the getClientDynamicPolicyControl command to find out whether an application that is a web service client obtains the policy configuration of a web service provider, and to list the properties that apply to obtaining that configuration.

    • setClientDynamicPolicyControl command
      Use the setClientDynamicPolicyControl command to set how an application that is a web services client obtains the policy configuration of a web services provider. We can set, refresh, or remove this information about how a provider policy is obtained.

    Reference topic