In the Web Services Resource Framework (WSRF), WS-Resources model a Web service's state by wrapping atomic or composite data types called WS-Resource properties. The WSRF specification supports dynamic insertion and deletion of a WS-Resource's resource properties at runtime. In this tutorial, the first in a three-part "Working with WS-Resource properties" series, you'll create an address book service that leverages the built-in support in the WSRF specification for manipulating a WS-Resource's resource properties.
In this tutorial
This tutorial shows how to set up an instance service that lets resource properties be added, updated, or deleted from the WS-Resource at runtime. Different resource properties can have different cardinality within the WS-Resource and can be manipulated at runtime according to the cardinality outlined in the Web Service Definition Language (WSDL) document. You'll also deploy one factory service to instantiate the resource to be managed. The objective is to learn about the configuration files, deployment descriptors, and Java™ code involved in using WSRF.
Prerequisites
If you are new to the field of Web services and WSRF, please read Babu Sundaram's four-part developerWorks tutorial titled "Understanding WSRF."
You should have the following background:
- A basic understanding of WSRF specifications.
- A basic understanding of XML.
- A thorough understanding of Web services and WSDL.
- Familiarity with the WS-Addressing specification.
- Intermediate skills in Web services development and Java programming, particularly on the Apache Axis platform. WS-Core is based on the Axis platform.
System requirements
The sample source code can be run on Windows® or UNIX® platforms. The examples were developed on Windows XP. You will need the following:
- To compile and deploy examples: Java 2 Standard Edition Software Development Kit V1.4 or higher and Apache Ant V1.6 or higher.
- To run the attached code, download WS-Core (Windows or UNIX systems) or the complete Globus Toolkit (Linux®/UNIX systems only).
- Web container -- WS-Core comes with an embedded stand-alone Web container. Any Java Web container (Apache Tomcat, for example) can also be used.
Formats
html, pdf
>>
Click Here to Go to the Tutorial<<