DownloadFile (string fileServiceCommand)
Description |
Downloads a file. |
Returns |
A Base64 encoded string which is the contents of the downloaded zipped file. |
Client Certificate | Send as parameter |
Additional Notes:
General Notes |
|
SOAP Request
POST /iVeriWebService/Service.asmx HTTP/1.1
Host: portal.nedsecure.co.za
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://iveri.com/DownloadFile"
<?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>
<DownloadFile xmlns="http://iveri.com/">
<fileServiceCommand>Html encoded string</fileServiceCommand>
</DownloadFile>
</soap:Body>
</soap:Envelope>
where <fileServiceCommand> is the Html encoded value
<File Command="">
<Gateway></Gateway>
<CertificateID></CertificateID>
<UserGroup></UserGroup>
<UserName></UserName>
<Password></Password>
<FileName></FileName>
<AcquirerCycle></AcquirerCycle>
<StartDateTime></StartDateTime>
<EndDateTime></EndDateTime>
<Mode></Mode>
<Acquirer></Acquirer>
<MerchantUsn></MerchantUsn>
<Format></Format>
</File>
of
<File Command="">
<Gateway></Gateway>
<CertificateID></CertificateID>
<UserGroup></UserGroup>
<UserName></UserName>
<Password></Password>
<FileName></FileName>
<AcquirerCycle></AcquirerCycle>
<StartDateTime></StartDateTime>
<EndDateTime></EndDateTime>
<Mode>Live</Mode>
<Acquirer></Acquirer>
<MerchantUsn></MerchantUsn>
<Format></Format>
</File>
Note that DateTime values must be in the format yyyy-MM-ddTHH:mm:ss (date and time separated with a T).
SOAP Response
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>
<DownloadFileResponse xmlns="http://iveri.com/">
<DownloadFileResult>Base64 string</DownloadFileResult>
</DownloadFileResponse>
</soap:Body>
</soap:Envelope>
The DownloadFileResult must be Base64 decoded and then unzipped to obtain the original file contents.