Skip to main content


developerWorks  >  SOA and Web services  >

Understanding Web Services specifications, Part 5: WS-Policy

developerWorks

Level: Intermediate

Tyler Anderson (tyleranderson5@yahoo.com), Freelance writer, Backstop Media

23 Feb 2007

Register now or sign in using your IBM ID and password.

This tutorial, Part 5 of the "Understanding Web Services specifications" series, explains the concepts behind WS-Policy and related standards, such as WS-SecurityPolicy, which provide a means to specify possible configurations of a Web service, and also to enforce defined security and authentication.

In this tutorial

Share this tutorial

digg Digg this story
del.icio.us Post to del.icio.us
Slashdot Slashdot it!

In this tutorial, you learn about Web Services Policy, or WS-Policy. This standard is for developers who want to expose their own services in an environment and use policies that define how these Web services are allowed to interact with other clients and services. The term WS-Policy refers to a framework that defines governance, such as the method of transport, and security, such as the level of encryption.

Follow along as the Daily Moon newspaper team uses the WS-Policy specifications to secure one of the Web services described throughout this series.


Objectives

  • Learn the syntax of creating policy documents, as well as how to create your own policies, and how to use other, already existing assertions.

  • See how you can manipulate Policy documents using mathematical properties of the underlying XML constructs.

  • Use Apache Neethi, the incomplete WS-Policy implementation from Axis2 that allows Axis2 users to manipulate and combine policy documents.

  • Learn how to use WS-Policy and WSDL together, and learn how to write WSDL that requires ports to adhere to a defined policy.

Prerequisites

In order to follow along with this tutorial, you should have a basic understanding of SOAP, which you can achieve by reading Part 1 of this series (by extension, you also need a basic understanding of XML). SOAP is programming-language agnostic. However, the samples in this tutorial use Java™ and the Apache Axis2 project, even though the concepts apply to any programming language and environment.


System requirements

Much of this tutorial is conceptual, but in order to follow along with the code that uses Apache Neethi to work with WS-Policy documents, you need the following software installed:

Java 2 Standard Edition version 1.4.2 or higher -- All of these tools are Java-based, as are the services and clients you build in this tutorial.

Apache Neethi -- Apache Neethi is what Axis2 uses to create a run-time representation of policy documents, and to perform normalization, merging, and intersection operations on policy documents.

A Web browser and a text editor.



Duration

2 hours


Formats

html, pdf


Share this....

digg Digg this story del.icio.us del.icio.us Slashdot Slashdot it!


Back to top


Document options

Document options requiring JavaScript are not displayed

Discuss


More in this series:
Understanding Web Services specifications