An application that is a web service client can obtain the policy configuration of a web service provider and use this information to establish a policy configuration that is acceptable to both the client and the service provider.
The service provider must publish its policy in its Web Services Description Language (WSDL) and that policy must contain its policy configuration at run time in WS-PolicyAttachments format. The client must be able to support those provider policies.
For a list of WS-Policy assertion specifications and WS-Policy domains that are supported, see the WS-Policy topic.
Level | String format | Name-value pair list format (NEW) | Behavior |
---|---|---|---|
Type | "WebService:/" | "type=WebService:/" | Indicates all artifacts in the application |
Service | "WebService:/myModule:{namespace}myService" | "type=WebService:/,module=myModule,service={namespace}myService" | Indicates all artifacts within the web service |
Endpoint (under this service) | "WebService:/myModule:{namespace}myService/endpointA" | "type=WebService:/,module=myModule,service={namespace}myService,endpoint=endpointA" | Indicates all operations for this endpoint (under the service) |
Operation (under this service) | "WebService:/myModule:{namespace}myService/endpointA/operation1" | "type=WebService:/,module=myModule,service={namespace}myService,endpoint=endpointA, operation=operation1" | Indicates a specific single operation (under the service) |
Service reference | [Not possible] | "type=WebService:/,module=myModule,service={namespace}myService,serviceRef=myServiceRef" | Indicates all artifacts within the web service reference |
Endpoint (under this service reference) | [Not possible] | "type=WebService:/,module=myModule,service={namespace}myService,serviceRef=myServiceRef, endpoint=endpointA" | Indicates all operations for this endpoint (under the service reference) |
Operation (under this service reference) | [Not possible] | "type=WebService:/,module=myModule,service={namespace}myService,serviceRef=myServiceRef, endpoint=endpointA,operation=operation1" | Indicates a specific single operation (under the service reference) |
If the provider policy uses multipart WSDL, you can use an HTTP GET request to obtain the policy of the provider, but you cannot use the WS-MetadataExchange protocol. For more information about multipart WSDL, see the topic about WSDL.
Policy intersection is the comparison of a client policy and a provider policy to determine whether they are compatible, and the calculation of a new policy, known as the effective policy, that complies with both their requirements and capabilities.
This topic describes how to configure the client policy to use a service provider policy by using wsadmin commands. You can also configure the client policy to use a service provider policy by using the administrative console.
The provider policy that the client holds for a service is refreshed the first time that the web service is invoked after the application is loaded. After that, the provider policy is refreshed when the application restarts, or if the application explicitly invokes a refresh. When the provider policy is refreshed, the effective policy is recalculated.