Available XML Web Services - UCD
The
WSDL
file of this XML Web Service
The
WSDL
hosted by the NASA Astrophysics Data System at Harvard-Smithsonian Center for Astrophysics
The following example shows how to use this XML Web Service in a Java application
It requires Axis libraries
UCDClient.java - http://cdsws.u-strasbg.fr/axis/services/UCD
Client.java
/** * Titre : UCD Client * Description : Gets definition/descrption corresponding to a UCD * Copyright : Copyright : Copyright (c) 2002-2005 * Société : Centre de Données Astronomique de Strasbourg * @author André Schaaff * @version 1.0 */
// package generated with the following command
// java org.apache.axis.wsdl.WSDL2Java http://cdsws.u-strasbg.fr/axis/services/UCD?wsdl
import
UCD_pkg.*;
public
class
Client{
public
Client() {
try
{ // locator creation UCDService locator =
new
UCDServiceLocator(); // UCD object UCD mya = locator.getUCD(); // explain example - String result String result = mya.explain("phot.mag;em.opt.V"); System.out.println(result); // Photometric magnitude / Optical V band between 500 and 600 nm }
catch
(Exception e ) {System.out.println(
"UCD XML WS client : "
+ e);} }
public
static
void
main(String [] args)
throws
Exception {
new
Client(); } }
©ULP/CNRS -
CDS, 11 rue de l'Université, 67000 Strasbourg, France