UploadInOrderFile
This function allows you to attach files to inorders.
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/UploadInOrderFile"
<?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>
<UploadInOrderFile xmlns="http://ongoingsystems.se/Automation">
<UserName>string</UserName>
<Password>string</Password>
<Operation>
<InOrderIdentification>
<InOrderId>int</InOrderId>
</InOrderIdentification>
<FileIdentification>FileName</FileIdentification>
<File>
<FileName>string</FileName>
<FileBytes>base64Binary</FileBytes>
<MimeType>string</MimeType>
</File>
</Operation>
</UploadInOrderFile>
</soap:Body>
</soap:Envelope>
Request specification
UploadInOrderFile | |||
---|---|---|---|
UserName | string(50) | Req. | Your username |
Password | string(50) | Req. | Your password |
Operation | AutomationUploadInOrderFileOperation | Req. | An element of type AutomationUploadInOrderFileOperation. |
AutomationUploadInOrderFileOperation | |||
---|---|---|---|
InOrderIdentification | AutomationUploadInOrderFileInOrderIdentification | Req. | An element of type AutomationUploadInOrderFileInOrderIdentification. |
FileIdentification | enum | Req. | Must be fixed string FileName |
File | AutomationUploadInOrderFile | Req. | An element of type AutomationUploadInOrderFile. |
AutomationUploadInOrderFileInOrderIdentification | |||
---|---|---|---|
InOrderId | int | Ongoing WMS internal system id for the inorder which you want to attach a file to. |
AutomationUploadInOrderFile | |||
---|---|---|---|
FileName | string(300) | Req. | Filename. Note that if you try to attach two files to the same inorder, then the two files must have different filenames. When comparing filenames, the system does a case-insensitive comparison. |
FileBytes | base64Binary | Req. | The contents of the file, encoded using Base64. |
MimeType | string(50) | Req. | The MIME type of the file, specifying what kind of file it is. |
Response XML
<?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>
<UploadInOrderFileResponse xmlns="http://ongoingsystems.se/Automation">
<UploadInOrderFileResult>
<Errors>
<AutomationUploadInOrderFileResultError>
<Message>string</Message>
<ErrorType>UnknownError or LogonError or InOrderNotFound or ErrorUpdating or InvalidIdentification or NoFileSpecified or InvalidFileSpecified</ErrorType>
</AutomationUploadInOrderFileResultError>
<AutomationUploadInOrderFileResultError>
<Message>string</Message>
<ErrorType>UnknownError or LogonError or InOrderNotFound or ErrorUpdating or InvalidIdentification or NoFileSpecified or InvalidFileSpecified</ErrorType>
</AutomationUploadInOrderFileResultError>
</Errors>
<UploadedInOrderFile>
<FileId>int</FileId>
</UploadedInOrderFile>
<Success>boolean</Success>
</UploadInOrderFileResult>
</UploadInOrderFileResponse>
</soap:Body>
</soap:Envelope>
Response specification
UploadInOrderFileResponse | ||
---|---|---|
UploadInOrderFileResult | AutomationUploadInOrderFileResult |
AutomationUploadInOrderFileResult | ||
---|---|---|
Errors | AutomationUploadInOrderFileResultError[] | A list of errors. |
UploadedInOrderFile | AutomationUploadedInOrderFile | An object containing info about the uploaded file |
Success | boolean | True if successful, false otherwise. |
AutomationUploadInOrderFileResultError | ||
---|---|---|
Message | string | Message explaining the error. |
ErrorType | enum | The type of error: - UnknownError - LogonError - InOrderNotFound - ErrorUpdating - InvalidIdentification - NoFileSpecified - InvalidFileSpecified |
AutomationUploadedInOrderFile | ||
---|---|---|
FileId | int | Ongoing WMS internal ID |