Добавления контрольного документа в объект


URL: components/Services/APIDocuments.asmx

Метод: CreateTemplateDocument

Передаваемые параметры

ПараметрОписание
ASPNETSessionIdИдентификатор сессии
objectIdИдентификато объекта
documentNameНазвание контрольного документа, который будет создан
isNegotiationRequestedФлаг «Нужно ли согласование?». Флаг регулирует опцию «Проверять согласование» у контрольного документа (чекбокс «Контрольный документ» отмечен). По умолчанию false.
descriptionОписание (необязательный)
<?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:CreateTemplateDocument>
         <str:ASPNETSessionId>string</str:ASPNETSessionId>
         <str:objectId>string</str:objectId>
         <str:documentName>string</str:documentName>
         <str:isNegotiationRequested>boolean</str:isNegotiationRequested>
         <str:description>string</str:description>
      </str:CreateTemplateDocument>
   </soapenv:Body>
</soapenv:Envelope>

Возвращаемый параметр

ПараметрОписание
CreateTemplateDocumentResultID созданного документа
<?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">
      <CreateTemplateDocumentResponse xmlns="http://streamline/">
         <CreateTemplateDocumentResult>string</CreateTemplateDocumentResult>
      </CreateTemplateDocumentResponse>
   </s:Body>
</s:Envelope>