Скачивание файла в заявке

Описание

Скачивание файла в заявке.


Наименование
ServiceRequestDownloadFile
НазначениеСкачивание файла в заявке
Дневной лимит (опер/час)120
Ночной лимит (опер/час)600
Максимум объектов в пакете-

Запрос

Параметр, выделенный жирным, является обязательным к заполнению!

ПараметрТипNULLОписание
FileIDUUID
ID файла
Пример
<soap12:Envelope xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <ServiceRequestDownloadFile xmlns="http://buhphone.com/PartnerWebAPI2">
      <FileID>4369d3e4-1823-40ac-88fa-fd8c0bb2f3d3</FileID>
    </ServiceRequestDownloadFile>
  </soap12:Body>
</soap12:Envelope>

Ответ (структура ResultData)

При успешном выполнении не заполняется.


Файл-вложение в режиме MTOM (отдельной партицией с двоичными данными файла)!

Пример ответа
HTTP/1.1 200 OK
Content-Type: multipart/related; type="application/xop+xml"; start="<rootpart>"; start-info="application/soap+xml"; boundary=d53286effc2be2ad7bd61907af4e34f6245f9075205196b66d68d84380b2
Date: Fri, 27 Oct 2023 04:50:44 GMT
Content-Length: 1127

--d53286effc2be2ad7bd61907af4e34f6245f9075205196b66d68d84380b2
Content-Id: <rootpart>
Content-Transfer-Encoding: 8bit
Content-Type: application/soap+xml; charset=UTF-8; type="application/soap+xml"

<Envelope xmlns="http://www.w3.org/2003/05/soap-envelope"><Body xmlns="http://www.w3.org/2003/05/soap-envelope"><ServiceRequestDownloadFileResponse xmlns="http://buhphone.com/PartnerWebAPI2" xmlns:xs="http://www.w3.org/2001/XMLSchema"><return><Property xmlns="http://v8.1c.ru/8.1/data/core" name="ResultCode"><Value xmlns:_XMLSchema-instance="http://www.w3.org/2001/XMLSchema-instance" _XMLSchema-instance:type="xs:string">SUCCESS</Value></Property></return><fileData><inc:Include href="cid:fileDataPart" xmlns:inc="http://www.w3.org/2004/08/xop/include"/></fileData></ServiceRequestDownloadFileResponse></Body></Envelope>
--d53286effc2be2ad7bd61907af4e34f6245f9075205196b66d68d84380b2
Content-Disposition: attachment; name="LaunchMode.ini"; filename="LaunchMode.ini"
Content-Id: <fileDataPart>
Content-Transfer-Encoding: binary
Content-Type: application/octet-stream

[general]
mode=Work


--d53286effc2be2ad7bd61907af4e34f6245f9075205196b66d68d84380b2--