CasJobs
Click here for a complete list of operations.
FindJobWithStatusDataSet
A join of jobs and status, where j is jobs and s is status. setSize is the number of jobs to return. Position is a multiplier on setSize, ie top 20, or next 20, etc. User can append select and/or where. justCount set to true returns a dataset with the total # of jobs for the specified conditions. Set size is how many jobs to return, position is the nth set of the specified size. So if you had 10 jobs, setSize was 2 and position was 1, it would return jobs 3&4. maxChars is the maximum # of characters to return for any single textfield. Setting this to -1 will return everything.
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 /CasJobs/CasJobs.asmx HTTP/1.1
Host: casjobs.sdss.org
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://Jobs.Cas.jhu.edu/FindJobWithStatusDataSet"
<?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>
<FindJobWithStatusDataSet xmlns="http://Jobs.Cas.jhu.edu">
<wsId>long</wsId>
<setSize>int</setSize>
<position>int</position>
<select>string</select>
<where>string</where>
<justCount>boolean</justCount>
<maxChars>int</maxChars>
</FindJobWithStatusDataSet>
</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>
<FindJobWithStatusDataSetResponse xmlns="http://Jobs.Cas.jhu.edu">
<FindJobWithStatusDataSetResult>
<xsd:schema>schema</xsd:schema>xml</FindJobWithStatusDataSetResult>
</FindJobWithStatusDataSetResponse>
</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 /CasJobs/CasJobs.asmx HTTP/1.1
Host: casjobs.sdss.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>
<FindJobWithStatusDataSet xmlns="http://Jobs.Cas.jhu.edu">
<wsId>long</wsId>
<setSize>int</setSize>
<position>int</position>
<select>string</select>
<where>string</where>
<justCount>boolean</justCount>
<maxChars>int</maxChars>
</FindJobWithStatusDataSet>
</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>
<FindJobWithStatusDataSetResponse xmlns="http://Jobs.Cas.jhu.edu">
<FindJobWithStatusDataSetResult>
<xsd:schema>schema</xsd:schema>xml</FindJobWithStatusDataSetResult>
</FindJobWithStatusDataSetResponse>
</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 /CasJobs/CasJobs.asmx/FindJobWithStatusDataSet?wsId=string&setSize=string&position=string&select=string&where=string&justCount=string&maxChars=string HTTP/1.1 Host: casjobs.sdss.org
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <DataSet xmlns="http://Jobs.Cas.jhu.edu"> <schema xmlns="http://www.w3.org/2001/XMLSchema">schema</schema>xml</DataSet>
HTTP POST
The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.
POST /CasJobs/CasJobs.asmx/FindJobWithStatusDataSet HTTP/1.1 Host: casjobs.sdss.org Content-Type: application/x-www-form-urlencoded Content-Length: length wsId=string&setSize=string&position=string&select=string&where=string&justCount=string&maxChars=string
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <DataSet xmlns="http://Jobs.Cas.jhu.edu"> <schema xmlns="http://www.w3.org/2001/XMLSchema">schema</schema>xml</DataSet>