Ongoing Warehouse logo

Ongoing Warehouse Developer

GetFile

This function lets you retrieve information about a file from Ongoing. Stored files might be e.g. reports in pdf or excel format.

Tags: GetFile, GetFileResponse

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/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/Automation">
            <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 file id of the file to get.

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/Automation">
            <GetFileResult>
                <FileName>string</FileName>
                <FileBytes>base64Binary</FileBytes>
                <MimeType>string</MimeType>
                <FileId>int</FileId>
            </GetFileResult>
        </GetFileResponse>
    </soap:Body>
</soap:Envelope>
+

Response specification

GetFileResult
FileName string The name of the file.
FileBytes base64Binary The contents of the file, encoded using Base64.
MimeType string The MIME type of the file.
FileId int The internal id of the file.