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.
To run the command, use the AdminTask object of the wsadmin scripting client.
This command is valid only when it is used with WebSphere® Application Server Version 7 and later application servers. Do not use it with earlier versions.
print AdminTask.help('PolicySetManagement')
print AdminTask.help('command_name')
AdminConfig.save()
Use the getClientDynamicPolicyControl command to find out how an application, or a service in an application, obtains the policy configuration of a service provider. The client can obtain the policy configuration of the provider through a Web Services Metadata Exchange (WS-MetadataExchange) request or through an HTTP Get request.
None.
The following example displays the properties that control how the EchoService service of the WSPolicyClient application obtains the policy configuration of a service provider. The client is configured to retrieve the provider policy through a WS-MetadataExchange request with message-level security, by using the SystemWSSecurityDefault policy set and the "Client sample" general binding.
AdminTask.getClientDynamicPolicyControl(['-applicationName', 'WSPolicyClient', '-resource', 'WebService:/WSPClient.war:{http://example_path/}EchoService']) . . [ [wsMexPolicySetName SystemWSSecurityDefault] [wsMexPolicySetBinding [Client sample]] [acquireProviderPolicyMethod [wsMex]] [resource WebService:/WSPClient.war:{http://example_path/}EchoService/] [directSetting true] ]
The following example displays the properties that control how the EchoService service of the WSPolicyClient application obtains the policy configuration of a service provider when the client is configured to retrieve the provider policy through an HTTP Get request.
AdminTask.getClientDynamicPolicyControl(['-applicationName', 'WSPolicyClient', '-resource', 'WebService:/WSPClient.war:{http://example_path/}EchoService']) . . [ [httpGetTargetURI http://example_path/EchoService?wsdl] [acquireProviderPolicyMethod [httpGet]] [resource WebService:/WSPClient.war:{http://example_path/}EchoService/] [directSetting true] ]