![[8.5.5.8 or later]](../../images/ng_v8558.gif)
Securing a web service by using a WS-Security policy
You can secure a Java API for XML Web Services (JAX-WS) web service by using a WS-Security policy. You can add a WS-Security policy template to your Web Services Description Language (WSDL) file.
Before you begin
You must have the JAX-WS web service WSDL file in your application. You can generate a WSDL file by using the web services wizards.
For more information about generating a WSDL file during top-down web service configuration, see Creating a Java™ bean skeleton from a WSDL document using the WebSphere® JAX-WS runtime environment.
For more information about generating a WSDL file during bottom-up web service configuration, see Creating a web service from a Java bean using the IBM® WebSphere JAX-WS runtime environment.
Procedure
Results
The WSDL file includes the policy reference, the WS-Security policy that you added, and the following required namespaces:
- ws-policy
- ws-security
- addressing