ADQLTranslator


Click here for a complete list of operations.

SQLtoADQLString

Take an SQL string and convert it to a string having the XML parsetree in ADQL

Test

To test the operation using the HTTP POST protocol, click the 'Invoke' button.
Parameter Value
sql:

SOAP

The following is a sample SOAP request and response. The placeholders shown need to be replaced with actual values.

POST /AdqlTranslator/ADQLTrans.asmx HTTP/1.1
Host: openskyquery.net
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://ws.parser.adql.ivoa.net/SQLtoADQLString"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <SQLtoADQLString xmlns="http://ws.parser.adql.ivoa.net/">
      <sql>string</sql>
    </SQLtoADQLString>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <SQLtoADQLStringResponse xmlns="http://ws.parser.adql.ivoa.net/">
      <SQLtoADQLStringResult>string</SQLtoADQLStringResult>
    </SQLtoADQLStringResponse>
  </soap:Body>
</soap:Envelope>

HTTP GET

The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.

GET /AdqlTranslator/ADQLTrans.asmx/SQLtoADQLString?sql=string HTTP/1.1
Host: openskyquery.net
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://ws.parser.adql.ivoa.net/">string</string>

HTTP POST

The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.

POST /AdqlTranslator/ADQLTrans.asmx/SQLtoADQLString HTTP/1.1
Host: openskyquery.net
Content-Type: application/x-www-form-urlencoded
Content-Length: length
sql=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://ws.parser.adql.ivoa.net/">string</string>