UploadInOrderFile

This function allows you to attach files to inorders.

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

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/WSI/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/WSI">
      <GoodsOwnerCode>string</GoodsOwnerCode>
      <UserName>string</UserName>
      <Password>string</Password>
      <Operation>
        <InOrderIdentification>
          <InOrderId>int</InOrderId>
          <GoodsOwnerOrderNumber>string</GoodsOwnerOrderNumber>
        </InOrderIdentification>
        <FileIdentification>FileName</FileIdentification>
        <File>
          <FileName>string</FileName>
          <FileBytes>base64Binary</FileBytes>
          <MimeType>string</MimeType>
        </File>
      </Operation>
    </UploadInOrderFile>
  </soap:Body>
</soap:Envelope>
+

Request specification

UploadInOrderFile
GoodsOwnerCode str(400) Req. The name/code of your client
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 either the InOrderId or GoodsOwnerOrderNumber 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.
GoodsOwnerOrderNumber str(50) Inorder number.
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/WSI">
      <UploadInOrderFileResult>
        <Errors>
          <UploadInOrderFileResultError>
            <Message>string</Message>
            <ErrorType>UnknownError or LogonError or InOrderNotFound or ErrorUpdating or InvalidIdentification or NoFileSpecified or InvalidFileSpecified</ErrorType>
          </UploadInOrderFileResultError>
          <UploadInOrderFileResultError>
            <Message>string</Message>
            <ErrorType>UnknownError or LogonError or InOrderNotFound or ErrorUpdating or InvalidIdentification or NoFileSpecified or InvalidFileSpecified</ErrorType>
          </UploadInOrderFileResultError>
        </Errors>
        <UploadedInOrderFile>
          <FileId>int</FileId>
        </UploadedInOrderFile>
        <Success>boolean</Success>
      </UploadInOrderFileResult>
    </UploadInOrderFileResponse>
  </soap:Body>
</soap:Envelope>
+

Response specification

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