WSIL4J:
Web Services Inspection Language for Java API

The Web Services Inspection Language (WS-Inspection) provides a distributed Web service discovery method, by specifying how to inspect a web site for available Web services. The WS-Inspection specification defines the locations on a Web site where you could look for Web service descriptions.

WSIL4J Structure

WSIL4J is a Java class library that provides an API that is can be used to locate and process WS-Inspection documents. This class library can be used to read and parse a WS-Inspection document, as well as generate a new WS-Inspection document. The primary class for interacting with a WS-Inspection document is org.apache.wsil.WSILDocument. The org.apache.wsil.client.WSILProxy class is used for accessing specific service descriptions within a WS-Inspection document. For example, you can use this class to access service descriptions by service name. A WSILException is thrown when errors occur. This class will contain an exception message, and may also contain a reference to an exception that caused the error.

Prerequisites

Configuration

WSIL4J uses a set of system parameters to configure certain functions. The wsil.properties file is located in the org.apache.wsil.util package.

Property name Values Description
wsil.transport.class org.uddi4j.transport.ApacheAxisTransport The UDDI4J transport that should be used when accessing a UDDI registry.
wsil.hostname localhost The default hostname used when locating WS-Inspection documents.
wsil.port 80 The default port number used when locating WS-Inspection documents.
wsil.document.name inspection.wsil The default WS-Inspection document name.

Accessing Builds and Source Code

The source code for this package is available on the Apache web site. Individual files can be accessed using the web-based CVS interface. The entire package can be downloaded using the following instructions.

Accessing the Nightly Builds

This package is built nightly along with Axis. The build will create two zip files: wsil4j-bin.zip and wsil4j-src.zip. The first file contains a complete build image, which includes wsil4j.jar, Javadoc, and all source code. The second file contains just a copy of the source code, which could be built using Ant. Both of these files can be accessed at the same location as the Axis nightly builds.

Accessing the Source Tree (AnonCVS)

So, you've decided that you need access to the source tree to see the latest and greatest code. There's two different forms of CVS access. The first is anonymous and anybody can use it. The second is not and you must have a login to the development server. If you don't know what this means, join the mailing list and find out.

Anyone can checkout source code from our anonymous CVS server. To do so, simply use the following commands (if you are using a GUI CVS client, configure it appropriatly):

cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic login
password: anoncvs

cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic checkout xml-axis-wsil

Full Remote CVS Access

If you are a Committer and have a login on the Apache development server, this section is for you. If you are not a Committer, but you want to submit patches or even request commit privelages, please see the Jakarta GuideLines page (we follow the same rules) for more information.

To have full access to the CVS server, you need to follow the links depending on the operating system you are using:

Building WSIL4J

Using WSIL4J

To run a program referencing WSIL4J,

Samples

There are two sample applications that use WSIL4J. Both of these samples are located in the samples directory. This directory also contains a sample WS-Inspection document.

Work To Be Done

The current WSIL4J implementation contains most of the basic support for the Web Services Inspection Language. Here is a list of future enhancements and usages for this package:

Reference