The job SubmitAsync takes the following parameters:
Service
This is the name of the service the job is submitted to, e.g., RunMdl.
Parameters
The parameters for the job. They are passed as a string to the Web Services interface.
Input files
To send files to ITP/Server that can be collected with the function ReceiveFile. The content of the file as well as an ID are passed. This ID is passed to ITP/Server to collect the file.
CorrelationID
This unique identifier is returned by the Web Services API as part of the returned SOAP message when a job is finished, so the calling application knows which task has finished.
ReturnPath
The URL to which the SOAP message is sent after the Web Services API finishes its task.
SubmitAsync will respond with OK if execution of the job was scheduled successfully, otherwise an error indication is returned. If the job is finished, the results will be posted to the URL mentioned in the parameter resultPath.
POST /itpserver/itpserver.asmx HTTP/1.1
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.aia-itp.com/itpserver/wsdl/SubmitAsync"
<?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>
<service xmlns="http://www.aia-itp.com/itpserver/wsdl">string</service>
<parms xmlns="http://www.aia-itp.com/itpserver/wsdl">
<string>string</string>
<string>string</string>
</parms>
<inDocuments xmlns="http://www.aia-itp.com/itpserver/wsdl">
<Doc>
<id>string</id>
<content>base64Binary</content>
</Doc>
<Doc>
<id>string</id>
<content>base64Binary</content>
</Doc>
</inDocuments>
<correlationId xmlns="http://www.aia-itp.com/itpserver/wsdl">string</correlationId>
<returnPath xmlns="http://www.aia-itp.com/itpserver/wsdl">string</returnPath>
</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>
<error xmlns="http://www.aia-itp.com/itpserver/wsdl">string</error>
</soap:Body>
</soap:Envelope>
POST /itpserver/itpserverwrapped.asmx HTTP/1.1
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.aia-itp.com/itpserver/wsdl/SubmitAsync"
<?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>
<SubmitAsync xmlns="http://www.aia-itp.com/itpserver/wsdl">
<service>string</service>
<parms>
<parm>string</parm>
<parm>string</parm>
</parms>
<inDocuments>
<Doc>
<id>string</id>
<content>base64Binary</content>
</Doc>
<Doc>
<id>string</id>
<content>base64Binary</content>
</Doc>
</inDocuments>
<correlationId>string</correlationId>
<returnPath>string</returnPath>
</SubmitAsync>
</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>
<SubmitAsyncResponse xmlns="http://www.aia-itp.com/itpserver/wsdl">
<error>string</error>
</SubmitAsyncResponse>
</soap:Body>
</soap:Envelope>