SendUnsignedMessage - Synerdocs/synerdocs-sdk GitHub Wiki

Запрос:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:syn="http://synerdocs.ru" xmlns:mid="http://schemas.datacontract.org/2004/07/Midway.ObjectModel" xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <soapenv:Header/>
    <soapenv:Body>
        <syn:SendUnsignedMessage>
            <syn:authToken>ebc25c3f-5f46-47b6-970c-6009c084f605</syn:authToken>
            <syn:message>
                <mid:Documents>
                    <mid:Document>
                        <mid:Content>MTIz</mid:Content>
                        <mid:DocumentTypeInfo>
                            <mid:DocumentType>
                                <mid:Code>0</mid:Code>
                            </mid:DocumentType>
                        </mid:DocumentTypeInfo>
                        <mid:FileName>Unsigned.txt</mid:FileName>
                        <mid:Id>324b130a-094f-4b0b-ad5a-4c5616d62bd8</mid:Id>
                        <mid:Name>Unsigned</mid:Name>
                        <mid:NeedSign>true</mid:NeedSign>
                    </mid:Document>
                </mid:Documents>
                <mid:From>[email protected]</mid:From>
                <mid:Recipients>
                    <mid:MessageRecipient>                        <mid:OrganizationBoxId>[email protected]</mid:OrganizationBoxId>
                    </mid:MessageRecipient>
                </mid:Recipients>
            </syn:message>
        </syn:SendUnsignedMessage>
    </soapenv:Body>
</soapenv:Envelope>

Ответ:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body>
      <SendUnsignedMessageResponse xmlns="http://synerdocs.ru">
         <SendUnsignedMessageResult xmlns:a="http://schemas.datacontract.org/2004/07/Midway.ObjectModel" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
            <a:DocumentIds>
               <a:LocalServerId>
                  <a:LocalId>324b130a-094f-4b0b-ad5a-4c5616d62bd8</a:LocalId>
                  <a:ServiceId>ff605dbb-1054-4592-8fb0-839ae3b38ec1</a:ServiceId>
               </a:LocalServerId>
            </a:DocumentIds>
            <a:Log i:nil="true" xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/>
            <a:MessageId>77e35166-ba59-4f09-93ce-7a2975d1d907</a:MessageId>
            <a:SentDate>2019-07-25T05:48:07.2135353Z</a:SentDate>
            <a:SignIds i:nil="true"/>
         </SendUnsignedMessageResult>
      </SendUnsignedMessageResponse>
   </s:Body>
</s:Envelope>
⚠️ **GitHub.com Fallback** ⚠️