GetFile
This function lets you retrieve information about a file from Ongoing WMS. Stored files might be e.g. reports in PDF or Excel format.
Request XML
POST /xxx/automation.asmx HTTP/1.1
Host: api.ongoingsystems.se
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://ongoingsystems.se/Automation/GetFile"
<?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>
<GetFile xmlns="http://ongoingsystems.se/Automation">
<UserName>string</UserName>
<Password>string</Password>
<FileId>int</FileId>
</GetFile>
</soap:Body>
</soap:Envelope>
Request specification
GetFile | |||
---|---|---|---|
UserName | str(50) | Req. | Your username. |
Password | str(50) | Req. | Your password. |
FileId | int | Req. | The file id of the file to get. |
Response XML
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>
<GetFileResponse xmlns="http://ongoingsystems.se/Automation">
<GetFileResult>
<FileName>string</FileName>
<FileBytes>base64Binary</FileBytes>
<MimeType>string</MimeType>
<FileId>int</FileId>
</GetFileResult>
</GetFileResponse>
</soap:Body>
</soap:Envelope>