Sloan Digital Sky Survey
Astronomical Data Query Language >> Creating a new Java Web client

Creating a new Java Web Client

Let us now look at how we create a new Java web Client in a few easy steps. You can either start by generating code on your machine or you can use the already generated code provided in the Download Code section.

Requirements

Code Generation

  1. First, let us download the latest ADQL webservice wsdl file into a local file Archive.wsdl.
  2. Next Run java org.apache.axis.wsdl.WSDL2Java -v Archive.wsdl on the command line. This generates the classes for the data types and the stubs needed to acccess the web service.

Download Code

You can download the entire source code in a zip format over here. This includes the WSDL file, the generated java files, and build.xml file. Once you have tested the deployment of this code, feel free to change the implementation of the Tester.java file based on your needs.
Here is some help on the ant build file.
Run ant Generate to generate the java files, ant to compile the code, ant Test to test the code.

Deployment

  1. Let's write a tester class. Use the getArchiveSoap method of the ArchiveLocator class to access the ArchiveSoap web service at any given url. Once you get hold of the Soap object, call the web methods on it as if it were a local object.
  2. Compile all the java files and it is ready to run.
  3. These are the presently available ADQL web service urls.


Vivek Haridas
Last Modified :Friday, July 25, 2003 at 3:34:45 PM , $Revision 1.1 $