Defining web service policy via policy attachment
In Liberty, you can define your web service policy (WS-Policy) within either policy attachment or Web Services Description Language (WSDL) file of a web service application.
About this task
When WSDL file is not packaged in your application, you can use the policy attachment to configure the WS-Policy for your web service application. Policy attachment feature is often enabled automatically to your web service application package when you enable Java API for XML Web Services (JAX-WS) 2.2 feature. You only need to configure both web services client and provider sides to define the application's WS-Policy Attachment file.
The WS-Policy support is an implementation of the following specifications on the application
server.
- WS-Policy is a specification that web services can use XML to advertise their policies on security, quality of service, and for web service consumers to specify their policy requirements. For more information, see Web Services Policy 1.5 - Framework.
- WS-Policy Attachment defines two general-purpose mechanisms for associating policies, as defined in Web Services Policy Framework, with the subjects to which they apply. For more information, see Web Services Policy 1.2 - Attachment.