Содержание

Скачивание версии документа в кодировке base64


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>