UploadArticleItemFile
This function allows you to attach files to article items.
Tags: UploadArticleItemFile, AutomationUploadArticleItemFileOperation, AutomationUploadArticleItemFileArticleItemIdentification, AutomationUploadArticleItemFile, UploadArticleItemFileResponse, AutomationUploadArticleItemFileResult, AutomationUploadArticleItemFileResultError, AutomationUploadedArticleItemFile
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/UploadArticleItemFile"
<?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>
<UploadArticleItemFile xmlns="http://ongoingsystems.se/Automation">
<UserName>string</UserName>
<Password>string</Password>
<Operation>
<ArticleItemIdentification>
<ArticleItemId>int</ArticleItemId>
</ArticleItemIdentification>
<FileIdentification>FileName</FileIdentification>
<File>
<FileName>string</FileName>
<FileBytes>base64Binary</FileBytes>
<MimeType>string</MimeType>
</File>
</Operation>
</UploadArticleItemFile>
</soap:Body>
</soap:Envelope>
Request specification
| UploadArticleItemFile |
| UserName |
string(50) |
Req. |
Your username |
| Password |
string(50) |
Req. |
Your password |
| Operation |
AutomationUploadArticleItemFileOperation |
Req. |
The operation object |
| AutomationUploadArticleItemFileOperation |
| ArticleItemIdentification |
AutomationUploadArticleItemFileArticleItemIdentification |
Req. |
An element of type AutomationUploadArticleItemFileArticleItemIdentification. |
| FileIdentification |
enum |
Req. |
Must be fixed string FileName |
| File |
AutomationUploadArticleItemFile |
Req. |
An element of type AutomationUploadArticleItemFile. |
| AutomationUploadArticleItemFileArticleItemIdentification |
| ArticleItemId |
int |
|
Ongoing WMS internal system id for the ArticleItem which you want to attach a file to. |
| AutomationUploadArticleItemFile |
| FileName |
string(300) |
Req. |
Filename. Note that if you try to attach two files to the same article item, 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>
<UploadArticleItemFileResponse xmlns="http://ongoingsystems.se/Automation">
<UploadArticleItemFileResult>
<Errors>
<AutomationUploadArticleItemFileResultError>
<Message>string</Message>
<ErrorType>UnknownError or LogonError or ArticleItemNotFound or ErrorUpdating or InvalidIdentification or NoFileSpecified or InvalidFileSpecified</ErrorType>
</AutomationUploadArticleItemFileResultError>
<AutomationUploadArticleItemFileResultError>
<Message>string</Message>
<ErrorType>UnknownError or LogonError or ArticleItemNotFound or ErrorUpdating or InvalidIdentification or NoFileSpecified or InvalidFileSpecified</ErrorType>
</AutomationUploadArticleItemFileResultError>
</Errors>
<UploadedArticleItemFile>
<FileId>int</FileId>
</UploadedArticleItemFile>
<Success>boolean</Success>
</UploadArticleItemFileResult>
</UploadArticleItemFileResponse>
</soap:Body>
</soap:Envelope>
Response specification
| UploadArticleItemFileResponse |
| UploadArticleItemFileResult |
AutomationUploadArticleItemFileResult |
|
| AutomationUploadArticleItemFileResult |
| Errors |
AutomationUploadArticleItemFileResultError[] |
A list of errors. |
| UploadedArticleItemFile |
AutomationUploadedArticleItemFile |
An object containing info about the uploaded file |
| Success |
boolean |
True if successful, false otherwise. |
| AutomationUploadArticleItemFileResultError |
| Message |
string |
Message explaining the error. |
| ErrorType |
enum |
An element of type AutomationUploadArticleItemFileErrorType. |
| AutomationUploadedArticleItemFile |
| FileId |
int |
Ongoing WMS internal ID |