Ongoing Warehouse Developer

GetFile

This function allows you to retrieve a a certain file. You must specify a FileId. If you don't know the FileId, you can use GetFileList to find it.

Tags: GetFile, GetFileResponse, GetFileResult

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

<?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>
    <GetFile xmlns="http://ongoingsystems.se/WSI">
      <UserName>string</UserName>
      <Password>string</Password>
      <FileId>int</FileId>
    </GetFile>
  </soap:Body>
</soap:Envelope>
+

Request specification

GetFile
UserName str(50) Req. Your username
Password str(50) Req. Your password
FileId int Req. The id of the file. If you don't know it, use GetFileList to find it.

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>
    <GetFileResponse xmlns="http://ongoingsystems.se/WSI">
      <GetFileResult>
        <FileName>string</FileName>
        <FileBytes>base64Binary</FileBytes>
        <MimeType>string</MimeType>
        <FileId>int</FileId>
      </GetFileResult>
    </GetFileResponse>
  </soap:Body>
</soap:Envelope>
+

Response specification

GetFileResponse
GetFileResult object Contains a GetFileResult
GetFileResult
FileName str(300) The filename.
FileBytes string The contents of the file, encoded using Base64.
MimeType str(50) The MIME type of the file, specifying what kind of file it is.
FileId int Ongoing's unique internal id for the file.