UploadInOrderFile

This function allows you to attach files to inorders.

Tags: UploadInOrderFile, UploadInOrderFileOperation, UploadInOrderFileInOrderIdentification, UploadInOrderFile, UploadInOrderFileResponse, UploadInOrderFileResult, UploadInOrderFileResultError, UploadedInOrderFile

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 string(400) Req. The name/code of your client
UserName string(50) Req. Your username
Password string(50) Req. Your password
Operation UploadInOrderFileOperation Req. An element of type UploadInOrderFileOperation.
UploadInOrderFileOperation
InOrderIdentification UploadInOrderFileInOrderIdentification 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 UploadInOrderFile 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 string(50) Inorder number.
UploadInOrderFile
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/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

UploadInOrderFileResponse
UploadInOrderFileResult UploadInOrderFileResult
UploadInOrderFileResult
Errors UploadInOrderFileResultError[]
UploadedInOrderFile UploadedInOrderFile An element of type UploadedInOrderFile.
Success boolean True if successful, false otherwise.
UploadInOrderFileResultError
Message string Message explaining the error.
ErrorType enum The type of error:
- UnknownError
- LogonError
- InOrderNotFound
- ErrorUpdating
- InvalidIdentification
- NoFileSpecified
- InvalidFileSpecified
UploadedInOrderFile
FileId int