Wiki
retrieve Job List For Resource


Peter Reynolds: 27/5 This should be fixed so that we retrieve the resources for a job.

The resource file can be associated with one or more jobs and this call allows for the Client to find which jobs is a particular resource file associated with. If a resource file is no longer to be used this call can be used to find a list of jobs associated with that resource and the disassociateResource call can be used to disassociate the resource with those jobs.

Passed In

Returned

Schema

Request

<xsd:element name="retrieveJobListForResourceRequest">
  <xsd:complexType>
    <xsd:sequence>
      <xsd:element ref="types:resource"/>
    </xsd:sequence>
  </xsd:complexType>
</xsd:element>

Response

<xsd:element name="retrieveJobListForResourceResponse">
  <xsd:complexType>
    <xsd:sequence>
      <xsd:element maxOccurs="unbounded" minOccurs="0" ref="types:ticket"/>
    </xsd:sequence>
  </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>
    <retrieveJobListForResourceRequest xmlns="urn:oasis:names:tc:wstrans:v1:types">
      <resource uri="http://www.simship.com/resource1.pdf"/>
    </retrieveJobListForResourceRequest>
  </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>
    <retrieveJobListForResourceResponse xmlns="urn:oasis:names:tc:wstrans:v1:types">
      <ticket jobId="job-001" projectId="proj-001" userId="user-001"/>
      <ticket jobId="job-002" projectId="proj-002" userId="user-002"/>
      <ticket jobId="job-003" projectId="proj-003" userId="user-003"/>
    </retrieveJobListForResourceResponse>
  </soapenv:Body>
</soapenv:Envelope>