UploadInOrderFile

This function allows you to attach files to inorders.

Tags: UploadInOrderFile, UploadInOrderFileOperation, UploadInOrderFileInOrderIdentification, File, UploadInOrderFileResult, AutomationUploadInOrderFileResultError

Request XML

POST /xxx/Service.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>
HTTP/1.1 200 OK
+

Request specification

UploadInOrderFile
UserName str(50) Req. Your username
Password str(50) Req. Your password
Operation object Req. An element of type File.
UploadInOrderFileOperation
InOrderIdentification object Req. An element of type UploadInOrderFileInOrderIdentification. Contains the InOrderId of the inorder which you want to attach the file to.
FileIdentification enum Req. Must be fixed string FileName
File object Req. An element of type UploadInOrderFile.
UploadInOrderFileInOrderIdentification
InOrderId int Ongoing WMS internal system id for the inorder which you want to attach a file to.
File
FileName str(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 string Req. The contents of the file, encoded using Base64.
MimeType str(50) Req. The MIME type of the file, specifying what kind of file it is.

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>
    <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

UploadInOrderFileResult
UploadInOrderFileResultError object A list of AutomationUploadInOrderFileResultError objects
Success bool True if successful, false otherwise.
AutomationUploadInOrderFileResultError
Message str(*) Message explaining the error.
ErrorType string The type of error:
- UnknownError
- LogonError
- InOrderNotFound
- ErrorUpdating
- InvalidIdentification
- NoFileSpecified
- InvalidFileSpecified