Security Features Guide > TDV Security Features by Component > Web Service Client Security > Explanation of Web Services Policy
 
Explanation of Web Services Policy
A Web Services policy is the same as an authentication scheme, but it is expressed in the form of an element in an XML file.
The XML snippet is referred to as a Web Services policy. The format of the XML snippet is described in Web Services Policy 1.2 - Framework (WS-Policy), which is at:
http://www.w3.org/Submission/WS-Policy/
This is the official specification, and the best source of reference for understanding policies.
Policies are server-side. The reason for selecting a policy is to tell the TDV server what authentication scheme to use when authenticating requests from clients.
TDV uses the Metro JDK to implement the authentication for each policy. Metro is documented at:
http://www.ibm.com/developerworks/java/library/j-jws10/index.html
Web policy basics are explained at:
http://www.ibm.com/developerworks/java/library/j-jws18/
Further information about Web Service policy can be found at:
TDV Administrator Security Policy Actions
SOAP Web Service Example
REST Web Service Example
TDV Administrator Security Policy Actions
As TDV administrator, you need to select the policy that represents the desired authentication scheme. You do not need to:
Modify the policies (for example, edit the XML policy element)
Do anything except select a policy for the server side
Do anything at all on the client side
SOAP Web Service Example
To select Basic Authentication for a SOAP Web Service, select the policy that represents the authentication scheme from the Security Policy drop-down list in the Service pane on the SOAP panel for the Web Service you are publishing. For a description of the procedure, see “Publishing a WSDL SOAP Data Service” or “Publishing a Contract-First WSDL SOAP Data Service” in the TDV User Guide.
REST Web Service Example
To select Basic Authentication for a REST Web Service, make sure Enable HTTP Basic is set to true in the Service pane on the REST panel for the Web Service you are publishing. For a description of the procedure, see “Publishing a WSDL REST Data Service” in the TDV User Guide.