Jobs
Click here for a complete list of operations.
GetQueues
Returns an array of CJQueue objects that summarize, for a particular user, their available contexts and the respective timeouts of.
Parameters:
long wsid : WebServicesID of the account of whose contexts will be retrieved.
string pw : Password of said account
Output:
CJQueue[] : An array of CJQueue objects representing all available queues for the input user.
A CJQueue object contains:
string Context : Name of the context
int Timeout : The maximum time a job is allowed to run. The 'estimate' parameter in SubmitJob maps to the closest Timeout of a given context.
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/services/jobs.asmx HTTP/1.1
Host: www.lamost.org
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://Services.Cas.jhu.edu/GetQueues"
<?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>
<GetQueues xmlns="http://Services.Cas.jhu.edu">
<wsid>long</wsid>
<pw>string</pw>
</GetQueues>
</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>
<GetQueuesResponse xmlns="http://Services.Cas.jhu.edu">
<GetQueuesResult>
<CJQueue>
<Context>string</Context>
<Timeout>int</Timeout>
</CJQueue>
<CJQueue>
<Context>string</Context>
<Timeout>int</Timeout>
</CJQueue>
</GetQueuesResult>
</GetQueuesResponse>
</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/services/jobs.asmx HTTP/1.1
Host: www.lamost.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>
<GetQueues xmlns="http://Services.Cas.jhu.edu">
<wsid>long</wsid>
<pw>string</pw>
</GetQueues>
</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>
<GetQueuesResponse xmlns="http://Services.Cas.jhu.edu">
<GetQueuesResult>
<CJQueue>
<Context>string</Context>
<Timeout>int</Timeout>
</CJQueue>
<CJQueue>
<Context>string</Context>
<Timeout>int</Timeout>
</CJQueue>
</GetQueuesResult>
</GetQueuesResponse>
</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/services/jobs.asmx/GetQueues?wsid=string&pw=string HTTP/1.1 Host: www.lamost.org
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<ArrayOfCJQueue xmlns="http://Services.Cas.jhu.edu">
<CJQueue>
<Context>string</Context>
<Timeout>int</Timeout>
</CJQueue>
<CJQueue>
<Context>string</Context>
<Timeout>int</Timeout>
</CJQueue>
</ArrayOfCJQueue>
HTTP POST
The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.
POST /casjobs/services/jobs.asmx/GetQueues HTTP/1.1 Host: www.lamost.org Content-Type: application/x-www-form-urlencoded Content-Length: length wsid=string&pw=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<ArrayOfCJQueue xmlns="http://Services.Cas.jhu.edu">
<CJQueue>
<Context>string</Context>
<Timeout>int</Timeout>
</CJQueue>
<CJQueue>
<Context>string</Context>
<Timeout>int</Timeout>
</CJQueue>
</ArrayOfCJQueue>