Developed by PeterCarr, MarkSubbaRao and NicoVermaas
We developed a java package
edu.bu.lite.nvo
which has classes for making a Java application
a client of various VO web services.
The code in this package makes extensive use of the examples
presented at the NVO Summer School.
Although this package is designed to be used as a plugin to
an existing educational application,
the
Spectrum Explorer,
it will compile independently of that project.
An ant script, build.xml, downloads WSDL files from each of the respective sites,
uses axis wsdl2java to generate java source code, compiles and builds
a jar file.
Where to get the WSDL files?
The ant script has links to download the wsdl files for each service.
<get usetimestamp="true" verbose="on"
src="http://voservices.net/NED/ws_v1_0/NED.asmx?WSDL" dest="${wsdl}/ned.wsdl"/>
<get usetimestamp="true" verbose="on"
src="http://voservices.net/spectrum/ws_v2_0/search.asmx?wsdl" dest="${wsdl}/spectrum.wsdl"/>
<get usetimestamp="true" verbose="on"
src="http://skyservice.pha.jhu.edu/SdssCutout/SdssCutout.asmx?WSDL" dest="${wsdl}/sdsscutout.wsdl"/>
<get usetimestamp="true" verbose="on"
src="http://openskyquery.net/Sky/SkyPortal/SkyPortal.asmx?WSDL" dest="${wsdl}/skyportal.wsdl"/>
<get usetimestamp="true" verbose="on"
src="http://cdsws.u-strasbg.fr/axis/services/VizieR?wsdl" dest="${wsdl}/vizier.wsdl"/>
How to try this program?
Download and unjar nvoplugindemo.jar.
Go to nvo folder where you will find build.xml.
You need axis,
ws.apache.org/axis,
in order to build.
You also need to specify the location of the axis install in order for the script
to run. You can do this either (1) from the command line, or (2) by editing
the build.xml.
To compile I type, for example,
ant -Daxis.home=/usr/local/axis-1_2beta
To run type
ant -Daxis.home=/usr/local/axis-1_2beta run
If you don't want to use the long command line, change the following
line in build.xml:
<!-- the path to axis -->
<property name="axis.home" value="../spex/lib/axis-1_2beta"/>
Then you can type:
ant
ant run
| Attachment: |
Size: | Date: | Comment: |
| nvoplugindemo.jar |
325481 | 01 Oct 2004 - 00:39 | nvoplugindemo.jar |
| build.xml |
5879 | 01 Oct 2004 - 00:44 | This file is included in the jar file. |