This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.

WS-API Sample

The WS Registry API exposes a complete set of registry operations that can be accessed through Web Service calls. This section explains how to run the sample that uses the WS Registry client sample.

Pre - Requirements

To get the sample to work, you must first do the following:

1. Enter the GREG_HOME/bin directory and run Ant from there. This action will copy all the necessary libraries to their respective locations. To run Ant from the command-line, type the following command and press <Enter>:

ant

2. Start the WSO2 Governance Registry by running the appropriate script from GREG_HOME/bin.

For Windows:

wso2server.bat --run

For Linux:

sh wso2server.sh

See Starting Governance Registry Management Console on Windows or Starting Governance Registry Management Console on Linux.

Steps to get this sample to work

1. Execute the ant run command from the GREG_HOME/samples/ws-client directory.

2. Each operation that occurred will be displayed on the console.

3. A resource will be created in root by the name of abc (i.e., path = /abc). And the resource will contain a rating of three stars, comments and the content of the resource will be printed. This can be checked through the Resource Browser which can be accessed through the Management Console.