Wiki
retrieve Job

This call is a mechanism for downloading a completed job. It can be used in conjunction with the retrieveJobInformation call. When the job status has been changed to complete this call can be used to retrieve the URI from which to download the file.

Passed In

Returned

Job-ticket The job ticket.
Resource URI URI that can be used to download the file containing the completed job.
Rejection deadline If the job has not been rejected (by calling rejectJob) before this deadline is reached it will be deemed accepted, and the job will no longer be considered active.

Schema

Request

<xsd:element name="retrieveJobRequest">
  <xsd:complexType>
    <xsd:sequence>
      <xsd:element ref="types:ticket"/>
    </xsd:sequence>
  </xsd:complexType>
</xsd:element>

Response

<xsd:element name="retrieveJobResponse">
  <xsd:complexType>
    <xsd:sequence>
      <xsd:element ref="types:ticket"/>
      <xsd:element ref="types:resource" />
      <xsd:element ref="types:rejectionDeadline"/>
    </xsd:sequence>
  </xsd:complexType>
</xsd:element>

<xsd:element name="rejectionDeadline">
  <xsd:complexType>
    <xsd:attribute name="date" type="dateTime" use="optional"/>
  </xsd:complexType>
</xsd:element>

Sample Message

Request

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
                  xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
                  xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <soapenv:Body>
    <retrieveJobRequest xmlns="urn:oasis:names:tc:wstrans:v1:types">
      <ticket jobId="job-001" projectId="proj-002" userId="user-003"/>
    </retrieveJobRequest>
  </soapenv:Body>
</soapenv:Envelope>

Response

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
                  xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
                  xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <soapenv:Body>
    <retrieveJobResponse xmlns="urn:oasis:names:tc:wstrans:v1:types">
      <ticket jobId="job-001" projectId="proj-002" userId="user-003"/>
      <resource uri="http://www.xml-intl.com/translated-fr.zip"/>
      <rejectionDeadline date="2004-12-31T23:59:59.389Z"/>
    </retrieveJobResponse>
  </soapenv:Body>
</soapenv:Envelope>

See also: Appendix 4, retrieveActiveJobsList, retrieveJobInformation, submitJob, rejectJob, acceptQuote