Developer’s corner

The Name Resolver XML Web Service. How to consume it in Java ? in Perl ?

This XML Web Service resolves a name which is present in , Simbad and/or NED and/or VizieR.

#=Simbad: 1

This example shows the result in usual format for M51 (in Simbad)

  • %J 202.4682083 +47.1946667 (6) = 13 29 52.370 +47 11 40.80
  • %J.E [10800.00 10800.00 90] D 1999ApJS..125..409C
  • %I.0 APG 85
  • %C IG
  • %@ 8056,0

XML Web Service URL at CDS : http://cdsws.u-strasbg.fr/axis/services/Sesame

                  a second server is available at CDS : http://cdsws2.u-strasbg.fr

Available methods : . sesame(String name, String resultType)

Parameter(s) : name the name to resolve

resultType

  • u = usual (corresponding to the deprecated Sesame(String name) output)
  • H = html
  • p (for plain (text/plain)) and i (for all identifiers) options can be added to H or x

Examples : sesame(“m31”,”x”), sesame(“m31”,”xi”), sesame(“m31”,”Hpi”), …

Result : format depending on the resultType parameter

Get the SOAP result for

  • name=m31 resultType=u
  • name=m31 resultType=H
  • name=m31 resultType=x
  • name=m31 resultType=pi

. sesame(String name, String resultType, boolean all, String service)

Parameter(s) : name the name to resolve

resultType

  • u = usual (corresponding to the deprecated Sesame(String name) output)
  • H = html
  • p (for plain (text/plain)) and i (for all identifiers) options can be added to H or x

all true if all identifiers wanted

service

  • S=Simbad
  • N=NED
  • V=VizieR
  • A=all

(examples : S to query in Simbad, NS to query in Ned if not found in Simbad,

      NSA to query in Ned and Simbad, A to query in Ned, Simbad and VizieR, ...)

Examples : sesame(“m31”,”x”,true,”N”), sesame(“m31”,”xi”,false,”A”), sesame(“m31”,”Hpi”,true,”NS”), … Result : format depending on the resultTtpe parameter

Get the SOAP result for

  • name=m31 resultType=u all=true service=NS
  • name=m31 resultType=x all=true service=NS

. getAvailability()

Parameter(s) : none

Result : returns an XML file conform to the “availability 0.2” schema (IVOA Support Interfaces and Basic Profile)

. Sesame(String name) (deprecated)

Parameter(s) : name the name to resolve

Result : fixed resultType p = plain (text/plain)

Get the SOAP result for

  • name=m31
  • name=m51

. SesameXML(String name) (deprecated)

Parameter(s) : name the name to resolve

Result : fixed resultType XML (XSD at http://vizier.u-strasbg.fr/xml/sesame_4.xsd)

Get the SOAP result for name=m31

In the following example(s) the user has not to manipulate the SOAP code…

Example for M51 (Sesame(“M51”)):

Query :

<?xml version="1.0" encoding="UTF-8" standalone="no" ?> 
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://cdsws.u-strasbg.fr/axis/services/Sesame" xmlns:intf="http://cdsws.u-strasbg.fr/axis/services/Sesame" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
<SOAP-ENV:Body> 
<mns:Sesame xmlns:mns="http://cdsws.u-strasbg.fr/axis/services/Sesame" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> 
<name xsi:type="xsd:string">M51</name> 
</mns:Sesame> 
</SOAP-ENV:Body> 
</SOAP-ENV:Envelope>

Result :

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
 <ns1:SesameResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://cdsws.u-strasbg.fr/axis/services/Sesame">
 <SesameReturn xsi:type="xsd:string"># M51 #Q01227
#=Simbad: 1
%J 202.4682083 +47.1946667 (6) = 13 29 52.370 +47 11 40.80 
%J.E [10800.00 10800.00 90] D 1999ApJS..125..409C
%I.0 APG 85
%C IG
%@ 8056,0
#---ServerTime(ms): 1
</SesameReturn>
 </ns1:SesameResponse>
</soapenv:Body>
</soapenv:Envelope>

Example for M51 (SesameXML(“M51”)): Query :

<?xml version="1.0" encoding="UTF-8" standalone="no" ?> 
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://cdsws.u-strasbg.fr/axis/services/Sesame" xmlns:intf="http://cdsws.u-strasbg.fr/axis/services/Sesame" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
<SOAP-ENV:Body> 
<mns:SesameXML xmlns:mns="http://cdsws.u-strasbg.fr/axis/services/Sesame" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> 
<name xsi:type="xsd:string">M51</name> 
</mns:SesameXML> 
</SOAP-ENV:Body> 
</SOAP-ENV:Envelope>

Result :

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
 <ns1:SesameXMLResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://cdsws.u-strasbg.fr/axis/services/Sesame">
 <SesameXMLReturn xsi:type="xsd:string"><?xml version="1.0" encoding="UTF-8"?>
<Sesame xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:noNamespaceSchemaLocation="http://vizier.u-strasbg.fr/xml/sesame_1.xsd">
 <!-- Q01240 -->
 <target option="A">m51</target>
 <Resolver name="Simbad">
 <INFO>from cache</INFO>
 <otype>IG</otype>
 <jpos>13:29:52.36 +47:11:40.8</jpos>
 <jradeg>202.4682083</jradeg>
 <jdedeg>+47.1946667</jdedeg>
 <refPos>1999ApJS..125..409C</refPos>
 <errRAmas>10800</errRAmas><errDEmas>10800</errDEmas>
 <oname>APG 85</oname>
 <alias>APG 85</alias>
 <alias>APG 85A</alias>
 <alias>BD+47 2063</alias>
 <alias>4C 47.36A</alias>
 <alias>com see NGC 5195</alias>
 <alias>[DML87] 671</alias>
 <alias>GB1 1327+475</alias>
 <alias>[H92] 27</alias>
 <alias>IRAS F13277+4727</alias>
 <alias>IRAS 13277+4727</alias>
 <alias>KHG 1-C 5</alias>
 <alias>KPG 379a</alias>
 <alias>LEDA 47404</alias>
 <alias>M 51</alias>
 <alias>[M98c] 132746.9+472716</alias>
 <alias>MCG+08-25-012</alias>
 <alias>NAME QUESTION MARK GALAXY</alias>
 <alias>NAME WHIRLPOOL</alias>
 <alias>NGC 5194</alias>
 <alias>PLX 3084</alias>
 <alias>RX J1329.8+4711</alias>
 <alias>1RXS J132953.8+471143</alias>
 <alias>[T76] 85A</alias>
 <alias>TC 827</alias>
 <alias>UGC 8493</alias>
 <alias>[VDD93] 187A</alias>
 <alias>VV 1</alias>
 <alias>VV 403</alias>
 <alias>VV 1a</alias>
 <alias>[VV2000c] J132952.4+471141</alias>
 <alias>[VV98c] J132952.7+471143</alias>
 <alias>Z 1327.8+4727</alias>
 <alias>Z 246 - 8</alias>
 <nrefs>1433</nrefs>
 </Resolver>
 <Resolver name="Ned">
 <INFO>from cache</INFO>
 <otype>GPair </otype>
 <jpos>13:29:55.72 +47:13:53.4</jpos>
 <jradeg>202.4821936</jradeg>
 <jdedeg>+47.2315089</jdedeg>
 <refPos>2001NEDR....1K...1B</refPos>
 <errRAmas>134000</errRAmas><errDEmas>134000</errDEmas>
 <oname>MESSIER 051 =[GPair]</oname>
 <alias>ARP 085 =[GPair]</alias>
 <alias>VV 001 =[GPair]</alias>
 <alias>KPG 379 =[GPair]</alias>
 <alias>HOLM 526 =[GPair]</alias>
 <alias>Whirlpool Galaxy =[GPair]</alias>
 <alias>Question Mark Galaxy =[GPair]</alias>
 <alias>Rosse's Galaxy =[GPair]</alias>
 <alias>[VE75] CL 1327+47 =[RadioS]</alias>
 <alias>[KR2001] G21 =[GPair]</alias>
 <nrefs>219</nrefs>
 </Resolver>
 <Resolver name="VizieR">
 <INFO>Not found</INFO>
 <INFO>from cache</INFO>
 </Resolver>
</Sesame>
</SesameXMLReturn>
 </ns1:SesameXMLResponse>
 </soapenv:Body>
</soapenv:Envelope>
nameresolver.txt · Last modified: 2011/11/28 09:57 by administrator

Thanks for acknowledging the CDS developer’s resources (libraries, source code, etc.)

© UDS/CNRS

Contact