GHostS Web Service
Click here for a complete list of operations.
FindGrbsSql
Finds and returns GRB hosts by a SQL query.
Input 1: SQL query.
Returns: List of GRBs.
Test
To test the operation using the HTTP POST protocol, click the 'Invoke' button.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /ghostsws.asmx HTTP/1.1 Host: grbhosts.org Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://grbhosts.org/FindGrbsSql" <?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> <FindGrbsSql xmlns="http://grbhosts.org"> <sql>string</sql> </FindGrbsSql> </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> <FindGrbsSqlResponse xmlns="http://grbhosts.org"> <FindGrbsSqlResult> <Grb> <Id>long</Id> <Name>string</Name> <Redshift>double</Redshift> <T90>double</T90> <T90_Err>double</T90_Err> <LogM>double</LogM> <LogM_Err>double</LogM_Err> <Sfr>double</Sfr> <Sfr_Err>double</Sfr_Err> <LogZ>double</LogZ> <LogZ_Err>double</LogZ_Err> <Ssfr>double</Ssfr> <Ssfr_Err>double</Ssfr_Err> <Av>double</Av> <Av_Err>double</Av_Err> <Distance>double</Distance> <Extinction>double</Extinction> <RA>double</RA> <Dec>double</Dec> <Radius>double</Radius> <DateObserved>dateTime</DateObserved> <DateCreated>dateTime</DateCreated> <DateModified>dateTime</DateModified> <Comment>string</Comment> <Seds> <Sed xsi:nil="true" /> <Sed xsi:nil="true" /> </Seds> <EmissionLines> <EmissionLine xsi:nil="true" /> <EmissionLine xsi:nil="true" /> </EmissionLines> <Figures> <Figure xsi:nil="true" /> <Figure xsi:nil="true" /> </Figures> <Papers> <Id>long</Id> <Authors>string</Authors> <Journal>string</Journal> <DateYear>int</DateYear> <Title>string</Title> <Url>string</Url> </Papers> <Papers> <Id>long</Id> <Authors>string</Authors> <Journal>string</Journal> <DateYear>int</DateYear> <Title>string</Title> <Url>string</Url> </Papers> </Grb> <Grb> <Id>long</Id> <Name>string</Name> <Redshift>double</Redshift> <T90>double</T90> <T90_Err>double</T90_Err> <LogM>double</LogM> <LogM_Err>double</LogM_Err> <Sfr>double</Sfr> <Sfr_Err>double</Sfr_Err> <LogZ>double</LogZ> <LogZ_Err>double</LogZ_Err> <Ssfr>double</Ssfr> <Ssfr_Err>double</Ssfr_Err> <Av>double</Av> <Av_Err>double</Av_Err> <Distance>double</Distance> <Extinction>double</Extinction> <RA>double</RA> <Dec>double</Dec> <Radius>double</Radius> <DateObserved>dateTime</DateObserved> <DateCreated>dateTime</DateCreated> <DateModified>dateTime</DateModified> <Comment>string</Comment> <Seds> <Sed xsi:nil="true" /> <Sed xsi:nil="true" /> </Seds> <EmissionLines> <EmissionLine xsi:nil="true" /> <EmissionLine xsi:nil="true" /> </EmissionLines> <Figures> <Figure xsi:nil="true" /> <Figure xsi:nil="true" /> </Figures> <Papers> <Id>long</Id> <Authors>string</Authors> <Journal>string</Journal> <DateYear>int</DateYear> <Title>string</Title> <Url>string</Url> </Papers> <Papers> <Id>long</Id> <Authors>string</Authors> <Journal>string</Journal> <DateYear>int</DateYear> <Title>string</Title> <Url>string</Url> </Papers> </Grb> </FindGrbsSqlResult> </FindGrbsSqlResponse> </soap:Body> </soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /ghostsws.asmx HTTP/1.1 Host: grbhosts.org Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <FindGrbsSql xmlns="http://grbhosts.org"> <sql>string</sql> </FindGrbsSql> </soap12:Body> </soap12:Envelope>
HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <FindGrbsSqlResponse xmlns="http://grbhosts.org"> <FindGrbsSqlResult> <Grb> <Id>long</Id> <Name>string</Name> <Redshift>double</Redshift> <T90>double</T90> <T90_Err>double</T90_Err> <LogM>double</LogM> <LogM_Err>double</LogM_Err> <Sfr>double</Sfr> <Sfr_Err>double</Sfr_Err> <LogZ>double</LogZ> <LogZ_Err>double</LogZ_Err> <Ssfr>double</Ssfr> <Ssfr_Err>double</Ssfr_Err> <Av>double</Av> <Av_Err>double</Av_Err> <Distance>double</Distance> <Extinction>double</Extinction> <RA>double</RA> <Dec>double</Dec> <Radius>double</Radius> <DateObserved>dateTime</DateObserved> <DateCreated>dateTime</DateCreated> <DateModified>dateTime</DateModified> <Comment>string</Comment> <Seds> <Sed xsi:nil="true" /> <Sed xsi:nil="true" /> </Seds> <EmissionLines> <EmissionLine xsi:nil="true" /> <EmissionLine xsi:nil="true" /> </EmissionLines> <Figures> <Figure xsi:nil="true" /> <Figure xsi:nil="true" /> </Figures> <Papers> <Id>long</Id> <Authors>string</Authors> <Journal>string</Journal> <DateYear>int</DateYear> <Title>string</Title> <Url>string</Url> </Papers> <Papers> <Id>long</Id> <Authors>string</Authors> <Journal>string</Journal> <DateYear>int</DateYear> <Title>string</Title> <Url>string</Url> </Papers> </Grb> <Grb> <Id>long</Id> <Name>string</Name> <Redshift>double</Redshift> <T90>double</T90> <T90_Err>double</T90_Err> <LogM>double</LogM> <LogM_Err>double</LogM_Err> <Sfr>double</Sfr> <Sfr_Err>double</Sfr_Err> <LogZ>double</LogZ> <LogZ_Err>double</LogZ_Err> <Ssfr>double</Ssfr> <Ssfr_Err>double</Ssfr_Err> <Av>double</Av> <Av_Err>double</Av_Err> <Distance>double</Distance> <Extinction>double</Extinction> <RA>double</RA> <Dec>double</Dec> <Radius>double</Radius> <DateObserved>dateTime</DateObserved> <DateCreated>dateTime</DateCreated> <DateModified>dateTime</DateModified> <Comment>string</Comment> <Seds> <Sed xsi:nil="true" /> <Sed xsi:nil="true" /> </Seds> <EmissionLines> <EmissionLine xsi:nil="true" /> <EmissionLine xsi:nil="true" /> </EmissionLines> <Figures> <Figure xsi:nil="true" /> <Figure xsi:nil="true" /> </Figures> <Papers> <Id>long</Id> <Authors>string</Authors> <Journal>string</Journal> <DateYear>int</DateYear> <Title>string</Title> <Url>string</Url> </Papers> <Papers> <Id>long</Id> <Authors>string</Authors> <Journal>string</Journal> <DateYear>int</DateYear> <Title>string</Title> <Url>string</Url> </Papers> </Grb> </FindGrbsSqlResult> </FindGrbsSqlResponse> </soap12:Body> </soap12:Envelope>
HTTP GET
The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.
GET /ghostsws.asmx/FindGrbsSql?sql=string HTTP/1.1 Host: grbhosts.org
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <ArrayOfGrb xmlns="http://grbhosts.org"> <Grb> <Id>long</Id> <Name>string</Name> <Redshift>double</Redshift> <T90>double</T90> <T90_Err>double</T90_Err> <LogM>double</LogM> <LogM_Err>double</LogM_Err> <Sfr>double</Sfr> <Sfr_Err>double</Sfr_Err> <LogZ>double</LogZ> <LogZ_Err>double</LogZ_Err> <Ssfr>double</Ssfr> <Ssfr_Err>double</Ssfr_Err> <Av>double</Av> <Av_Err>double</Av_Err> <Distance>double</Distance> <Extinction>double</Extinction> <RA>double</RA> <Dec>double</Dec> <Radius>double</Radius> <DateObserved>dateTime</DateObserved> <DateCreated>dateTime</DateCreated> <DateModified>dateTime</DateModified> <Comment>string</Comment> <Seds> <Sed> <Id>long</Id> <GrbId>long</GrbId> <PaperId>long</PaperId> <Wavelength>double</Wavelength> <Flux>double</Flux> <FluxError>double</FluxError> <FluxLimit>Both or Upper or Lower</FluxLimit> <Ucd>string</Ucd> </Sed> <Sed> <Id>long</Id> <GrbId>long</GrbId> <PaperId>long</PaperId> <Wavelength>double</Wavelength> <Flux>double</Flux> <FluxError>double</FluxError> <FluxLimit>Both or Upper or Lower</FluxLimit> <Ucd>string</Ucd> </Sed> </Seds> <EmissionLines> <EmissionLine> <Id>long</Id> <GrbId>long</GrbId> <LineId>long</LineId> <PaperId>long</PaperId> <Flux>double</Flux> <FluxError>double</FluxError> <FluxLimit>Both or Upper or Lower</FluxLimit> <Line d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> </EmissionLine> <EmissionLine> <Id>long</Id> <GrbId>long</GrbId> <LineId>long</LineId> <PaperId>long</PaperId> <Flux>double</Flux> <FluxError>double</FluxError> <FluxLimit>Both or Upper or Lower</FluxLimit> <Line d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> </EmissionLine> </EmissionLines> <Figures> <Figure> <Id>long</Id> <GrbId>long</GrbId> <PaperId>long</PaperId> <Caption>string</Caption> <FileName>string</FileName> <Data>base64Binary</Data> <DataType>string</DataType> <MimeType>string</MimeType> <Url>string</Url> </Figure> <Figure> <Id>long</Id> <GrbId>long</GrbId> <PaperId>long</PaperId> <Caption>string</Caption> <FileName>string</FileName> <Data>base64Binary</Data> <DataType>string</DataType> <MimeType>string</MimeType> <Url>string</Url> </Figure> </Figures> <Papers> <Id>long</Id> <Authors>string</Authors> <Journal>string</Journal> <DateYear>int</DateYear> <Title>string</Title> <Url>string</Url> </Papers> <Papers> <Id>long</Id> <Authors>string</Authors> <Journal>string</Journal> <DateYear>int</DateYear> <Title>string</Title> <Url>string</Url> </Papers> </Grb> <Grb> <Id>long</Id> <Name>string</Name> <Redshift>double</Redshift> <T90>double</T90> <T90_Err>double</T90_Err> <LogM>double</LogM> <LogM_Err>double</LogM_Err> <Sfr>double</Sfr> <Sfr_Err>double</Sfr_Err> <LogZ>double</LogZ> <LogZ_Err>double</LogZ_Err> <Ssfr>double</Ssfr> <Ssfr_Err>double</Ssfr_Err> <Av>double</Av> <Av_Err>double</Av_Err> <Distance>double</Distance> <Extinction>double</Extinction> <RA>double</RA> <Dec>double</Dec> <Radius>double</Radius> <DateObserved>dateTime</DateObserved> <DateCreated>dateTime</DateCreated> <DateModified>dateTime</DateModified> <Comment>string</Comment> <Seds> <Sed> <Id>long</Id> <GrbId>long</GrbId> <PaperId>long</PaperId> <Wavelength>double</Wavelength> <Flux>double</Flux> <FluxError>double</FluxError> <FluxLimit>Both or Upper or Lower</FluxLimit> <Ucd>string</Ucd> </Sed> <Sed> <Id>long</Id> <GrbId>long</GrbId> <PaperId>long</PaperId> <Wavelength>double</Wavelength> <Flux>double</Flux> <FluxError>double</FluxError> <FluxLimit>Both or Upper or Lower</FluxLimit> <Ucd>string</Ucd> </Sed> </Seds> <EmissionLines> <EmissionLine> <Id>long</Id> <GrbId>long</GrbId> <LineId>long</LineId> <PaperId>long</PaperId> <Flux>double</Flux> <FluxError>double</FluxError> <FluxLimit>Both or Upper or Lower</FluxLimit> <Line d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> </EmissionLine> <EmissionLine> <Id>long</Id> <GrbId>long</GrbId> <LineId>long</LineId> <PaperId>long</PaperId> <Flux>double</Flux> <FluxError>double</FluxError> <FluxLimit>Both or Upper or Lower</FluxLimit> <Line d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> </EmissionLine> </EmissionLines> <Figures> <Figure> <Id>long</Id> <GrbId>long</GrbId> <PaperId>long</PaperId> <Caption>string</Caption> <FileName>string</FileName> <Data>base64Binary</Data> <DataType>string</DataType> <MimeType>string</MimeType> <Url>string</Url> </Figure> <Figure> <Id>long</Id> <GrbId>long</GrbId> <PaperId>long</PaperId> <Caption>string</Caption> <FileName>string</FileName> <Data>base64Binary</Data> <DataType>string</DataType> <MimeType>string</MimeType> <Url>string</Url> </Figure> </Figures> <Papers> <Id>long</Id> <Authors>string</Authors> <Journal>string</Journal> <DateYear>int</DateYear> <Title>string</Title> <Url>string</Url> </Papers> <Papers> <Id>long</Id> <Authors>string</Authors> <Journal>string</Journal> <DateYear>int</DateYear> <Title>string</Title> <Url>string</Url> </Papers> </Grb> </ArrayOfGrb>
HTTP POST
The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.
POST /ghostsws.asmx/FindGrbsSql HTTP/1.1 Host: grbhosts.org 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"?> <ArrayOfGrb xmlns="http://grbhosts.org"> <Grb> <Id>long</Id> <Name>string</Name> <Redshift>double</Redshift> <T90>double</T90> <T90_Err>double</T90_Err> <LogM>double</LogM> <LogM_Err>double</LogM_Err> <Sfr>double</Sfr> <Sfr_Err>double</Sfr_Err> <LogZ>double</LogZ> <LogZ_Err>double</LogZ_Err> <Ssfr>double</Ssfr> <Ssfr_Err>double</Ssfr_Err> <Av>double</Av> <Av_Err>double</Av_Err> <Distance>double</Distance> <Extinction>double</Extinction> <RA>double</RA> <Dec>double</Dec> <Radius>double</Radius> <DateObserved>dateTime</DateObserved> <DateCreated>dateTime</DateCreated> <DateModified>dateTime</DateModified> <Comment>string</Comment> <Seds> <Sed> <Id>long</Id> <GrbId>long</GrbId> <PaperId>long</PaperId> <Wavelength>double</Wavelength> <Flux>double</Flux> <FluxError>double</FluxError> <FluxLimit>Both or Upper or Lower</FluxLimit> <Ucd>string</Ucd> </Sed> <Sed> <Id>long</Id> <GrbId>long</GrbId> <PaperId>long</PaperId> <Wavelength>double</Wavelength> <Flux>double</Flux> <FluxError>double</FluxError> <FluxLimit>Both or Upper or Lower</FluxLimit> <Ucd>string</Ucd> </Sed> </Seds> <EmissionLines> <EmissionLine> <Id>long</Id> <GrbId>long</GrbId> <LineId>long</LineId> <PaperId>long</PaperId> <Flux>double</Flux> <FluxError>double</FluxError> <FluxLimit>Both or Upper or Lower</FluxLimit> <Line d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> </EmissionLine> <EmissionLine> <Id>long</Id> <GrbId>long</GrbId> <LineId>long</LineId> <PaperId>long</PaperId> <Flux>double</Flux> <FluxError>double</FluxError> <FluxLimit>Both or Upper or Lower</FluxLimit> <Line d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> </EmissionLine> </EmissionLines> <Figures> <Figure> <Id>long</Id> <GrbId>long</GrbId> <PaperId>long</PaperId> <Caption>string</Caption> <FileName>string</FileName> <Data>base64Binary</Data> <DataType>string</DataType> <MimeType>string</MimeType> <Url>string</Url> </Figure> <Figure> <Id>long</Id> <GrbId>long</GrbId> <PaperId>long</PaperId> <Caption>string</Caption> <FileName>string</FileName> <Data>base64Binary</Data> <DataType>string</DataType> <MimeType>string</MimeType> <Url>string</Url> </Figure> </Figures> <Papers> <Id>long</Id> <Authors>string</Authors> <Journal>string</Journal> <DateYear>int</DateYear> <Title>string</Title> <Url>string</Url> </Papers> <Papers> <Id>long</Id> <Authors>string</Authors> <Journal>string</Journal> <DateYear>int</DateYear> <Title>string</Title> <Url>string</Url> </Papers> </Grb> <Grb> <Id>long</Id> <Name>string</Name> <Redshift>double</Redshift> <T90>double</T90> <T90_Err>double</T90_Err> <LogM>double</LogM> <LogM_Err>double</LogM_Err> <Sfr>double</Sfr> <Sfr_Err>double</Sfr_Err> <LogZ>double</LogZ> <LogZ_Err>double</LogZ_Err> <Ssfr>double</Ssfr> <Ssfr_Err>double</Ssfr_Err> <Av>double</Av> <Av_Err>double</Av_Err> <Distance>double</Distance> <Extinction>double</Extinction> <RA>double</RA> <Dec>double</Dec> <Radius>double</Radius> <DateObserved>dateTime</DateObserved> <DateCreated>dateTime</DateCreated> <DateModified>dateTime</DateModified> <Comment>string</Comment> <Seds> <Sed> <Id>long</Id> <GrbId>long</GrbId> <PaperId>long</PaperId> <Wavelength>double</Wavelength> <Flux>double</Flux> <FluxError>double</FluxError> <FluxLimit>Both or Upper or Lower</FluxLimit> <Ucd>string</Ucd> </Sed> <Sed> <Id>long</Id> <GrbId>long</GrbId> <PaperId>long</PaperId> <Wavelength>double</Wavelength> <Flux>double</Flux> <FluxError>double</FluxError> <FluxLimit>Both or Upper or Lower</FluxLimit> <Ucd>string</Ucd> </Sed> </Seds> <EmissionLines> <EmissionLine> <Id>long</Id> <GrbId>long</GrbId> <LineId>long</LineId> <PaperId>long</PaperId> <Flux>double</Flux> <FluxError>double</FluxError> <FluxLimit>Both or Upper or Lower</FluxLimit> <Line d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> </EmissionLine> <EmissionLine> <Id>long</Id> <GrbId>long</GrbId> <LineId>long</LineId> <PaperId>long</PaperId> <Flux>double</Flux> <FluxError>double</FluxError> <FluxLimit>Both or Upper or Lower</FluxLimit> <Line d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> </EmissionLine> </EmissionLines> <Figures> <Figure> <Id>long</Id> <GrbId>long</GrbId> <PaperId>long</PaperId> <Caption>string</Caption> <FileName>string</FileName> <Data>base64Binary</Data> <DataType>string</DataType> <MimeType>string</MimeType> <Url>string</Url> </Figure> <Figure> <Id>long</Id> <GrbId>long</GrbId> <PaperId>long</PaperId> <Caption>string</Caption> <FileName>string</FileName> <Data>base64Binary</Data> <DataType>string</DataType> <MimeType>string</MimeType> <Url>string</Url> </Figure> </Figures> <Papers> <Id>long</Id> <Authors>string</Authors> <Journal>string</Journal> <DateYear>int</DateYear> <Title>string</Title> <Url>string</Url> </Papers> <Papers> <Id>long</Id> <Authors>string</Authors> <Journal>string</Journal> <DateYear>int</DateYear> <Title>string</Title> <Url>string</Url> </Papers> </Grb> </ArrayOfGrb>