Configuring a service provider to share its policy configuration
A WebSphere® Application Server service provider can share its policy configuration in published Web Services Description Language (WSDL), or WSDL that is obtained by using an HTTP GET request or the Web Services Metadata Exchange (WS-MetadataExchange) GetMetadata request.
About this task
- Include the policy configuration of the service provider in the WSDL. The WSDL is then available to publish, or to obtain by using an HTTP GET request.
- Enable the Web Services Metadata Exchange (WS-MetadataExchange) protocol so that the policy configuration of the service provider is included in the WSDL and is available to a WS-MetadataExchange GetMetadata request. An advantage of using the WS-MetadataExchange protocol is that you can apply message-level security to WS-MetadataExchange GetMetadata requests by using a suitable system policy set.
If the service provider application uses multipart WSDL, all the WSDL must be local to the web service application. For more information about multipart WSDL, see the topic about WSDL.
Rational® Application Developer tools.
This topic describes how to configure a service provider to share its policy configuration by using the administrative console. You can also configure a service provider to share its policy configuration by using wsadmin commands or
Procedure
- From the navigation pane of the administrative console, click .
- In the row for the application or service where the provider policy that you want to
share is attached, click the link in the Policy sharing column. The link is either Enabled or Disabled.The Policy Sharing pane is displayed.
- To include the policy configuration of the service provider in its WSDL so that it can be either published or obtained by using an HTTP GET request, select Exported WSDL.
- To enable WS-MetadataExchange and make the policy configuration of the service provider available to a WS-MetadataExchange GetMetada request, select WS-MetadataExchange request.
- Optional: If you select WS-MetadataExchange request and you want to use message-level security, select Attach a system policy set to the WS-MetadataExchange, then select a suitable policy set and binding from the drop-down lists.
- Click OK and save your changes to the master configuration.
Results
<wsp:Policy>
<wsp:ExactlyOne>
</wsp:ExactlyOne>
</wsp:Policy>
This policy notifies the client that
there is no acceptable policy configuration for the service. Other
aspects of the WSDL are unaffected.A service provider might not be able to share its policy configuration because the configuration cannot be expressed in the standard WS-PolicyAttachments format. One reason might be because multiple incompatible policies are defined for a particular attach point. Another reason might be because there is not enough binding information to generate the standard policy. Policy configuration might include bootstrap policy, for example, the policy to access a WS-Trust service, so the bootstrap policy must also be expressed in WS-PolicyAttachments format.