UploadPalletItemFile

This function allows you to attach files to pallet items.

Tags: UploadPalletItemFile, AutomationUploadPalletItemFileOperation, AutomationUploadPalletItemFilePalletItemIdentification, AutomationUploadPalletItemFile, UploadPalletItemFileResponse, AutomationUploadPalletItemFileResult, AutomationUploadPalletItemFileResultError, AutomationUploadedPalletItemFile

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/UploadPalletItemFile"

<?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>
    <UploadPalletItemFile xmlns="http://ongoingsystems.se/Automation">
      <UserName>string</UserName>
      <Password>string</Password>
      <Operation>
        <PalletItemIdentification>
          <PalletItemId>int</PalletItemId>
        </PalletItemIdentification>
        <FileIdentification>FileName</FileIdentification>
        <File>
          <FileName>string</FileName>
          <FileBytes>base64Binary</FileBytes>
          <MimeType>string</MimeType>
        </File>
      </Operation>
    </UploadPalletItemFile>
  </soap:Body>
</soap:Envelope>

Request specification

UploadPalletItemFile
UserName string(50) Req. Your username
Password string(50) Req. Your password
Operation AutomationUploadPalletItemFileOperation Req. The operation object
AutomationUploadPalletItemFileOperation
PalletItemIdentification AutomationUploadPalletItemFilePalletItemIdentification Req. An element of type AutomationUploadPalletItemFilePalletItemIdentification.
FileIdentification enum Req. Must be fixed string FileName
File AutomationUploadPalletItemFile Req. An element of type AutomationUploadPalletItemFile.
AutomationUploadPalletItemFilePalletItemIdentification
PalletItemId int Ongoing WMS internal system id for the PalletItem which you want to attach a file to.
AutomationUploadPalletItemFile
FileName string(300) Req. Filename. Note that if you try to attach two files to the same PalletItem, 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>
    <UploadPalletItemFileResponse xmlns="http://ongoingsystems.se/Automation">
      <UploadPalletItemFileResult>
        <Errors>
          <AutomationUploadPalletItemFileResultError>
            <Message>string</Message>
            <ErrorType>UnknownError or LogonError or PalletItemNotFound or ErrorUpdating or InvalidIdentification or NoFileSpecified or InvalidFileSpecified</ErrorType>
          </AutomationUploadPalletItemFileResultError>
          <AutomationUploadPalletItemFileResultError>
            <Message>string</Message>
            <ErrorType>UnknownError or LogonError or PalletItemNotFound or ErrorUpdating or InvalidIdentification or NoFileSpecified or InvalidFileSpecified</ErrorType>
          </AutomationUploadPalletItemFileResultError>
        </Errors>
        <UploadedPalletItemFile>
          <FileId>int</FileId>
        </UploadedPalletItemFile>
        <Success>boolean</Success>
      </UploadPalletItemFileResult>
    </UploadPalletItemFileResponse>
  </soap:Body>
</soap:Envelope>

Response specification

UploadPalletItemFileResponse
UploadPalletItemFileResult AutomationUploadPalletItemFileResult
AutomationUploadPalletItemFileResult
Errors AutomationUploadPalletItemFileResultError[] A list of errors.
UploadedPalletItemFile AutomationUploadedPalletItemFile An object containing info about the uploaded file
Success boolean True if successful, false otherwise.
AutomationUploadPalletItemFileResultError
Message string Message explaining the error.
ErrorType enum The type of error:
- UnknownError
- LogonError
- PalletItemNotFound
- ErrorUpdating
- InvalidIdentification
- NoFileSpecified
- InvalidFileSpecified
AutomationUploadedPalletItemFile
FileId int Ongoing WMS internal ID