URL: components/Services/APIDocuments.asmx
Метод: DownloadDocumentFile
| Параметр | Описание |
|---|---|
ASPNETSessionId | Идентификатор сессии |
documentId* | Идентификатор документа(карточки документа) |
versionId | Идентификатор версии документа (указывается, если нужно скачать указанную версию документа) |
<?xml version="1.0" encoding="utf-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:str="http://streamline/"> <soapenv:Header/> <soapenv:Body> <str:DownloadDocumentFile> <str:ASPNETSessionId>string</str:ASPNETSessionId> <str:documentId>guid</str:documentId> <str:versionId>guid</str:versionId> </str:DownloadDocumentFile> </soapenv:Body> </soapenv:Envelope>
| Параметр | Описание |
|---|---|
DownloadDocumentFileResult | Результат выполнения метода (успешно, либо нет с указанием причины) |
DocumentId | Идентификатор документа (карточки документа) |
DocumentName | Название карточки документа |
version | Версия документа |
ID | Идентификатор версии документа |
Number | Номер версии документа (цифра 1,2,3 и т.д.) |
FileName | Название файла, который был загружен в качестве версии документа, с его расширением |
ContentType* | Тип загружаемого файла |
Body | Версия файла документа в кодировке base64 |
<?xml version="1.0" encoding="utf-8"?> <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <DownloadDocumentFileResponse xmlns="http://streamline/"> <DownloadDocumentFileResult> <DocumentId>guid</DocumentId> <DocumentName>string</DocumentName> <Version> <Id>guid</Id> <Number>int</Number> <FileName>string</FileName> <ContentType>string</ContentType> <Body>base64Binary</Body> </Version> </DownloadDocumentFileResult> </DownloadDocumentFileResponse> </s:Body> </s:Envelope>