SendMessage_UntypedDocumentWithSimpleSignature - 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:SendMessage>
			<syn:authToken>f5eac384-1872-4fc5-b1e7-f2d8c552f9b0</syn:authToken>
			<syn:message>
				<mid:Documents>
					<mid:Document>
						<mid:Content>xO7q8+zl7fIg8SDv8O7x8u7pIN3P</mid:Content>
						<mid:DocumentTypeEnum>
							<mid:Code>0</mid:Code>
						</mid:DocumentTypeEnum>
						<mid:FileName>doc.txt</mid:FileName>
						<mid:Id>09b11f34-8187-4d2b-8a2d-da86d29d796f</mid:Id>
						<mid:Name>Документ с простой ЭП</mid:Name>
						<mid:NeedSign>true</mid:NeedSign>
					</mid:Document>
				</mid:Documents>
				<mid:From>[email protected]</mid:From>
				<mid:Id>5541150-a776-41a7-a79a-d5a6c651fa6c</mid:Id>
				<mid:Recipients>
					<mid:MessageRecipient>
						<mid:OrganizationBoxId>[email protected]</mid:OrganizationBoxId>
					</mid:MessageRecipient>
				</mid:Recipients>
				<mid:SimpleSignatures>
					<mid:SimpleSignature>
						<mid:DocumentId>09b11f34-8187-4d2b-8a2d-da86d29d796f</mid:DocumentId>
						<mid:Id>46911f34-8187-4d2b-8a2d-da86d29d796f</mid:Id>
						<mid:Raw>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0id2luZG93cy0xMjUxIiBzdGFuZGFsb25lPSJ5ZXMiPz4NCjzP8O7x8uD/3c/E7urz7OXt8uAgxODy4NHu5+Tg7ej/PSIyMDE4LTA4LTI0VDA1OjQ1OjQzLjkxNjc4NDVaIiDC5fDx6P89IjEuMCIg1eX4wPLw6OHz8u7iPSI4cU9YK05KYi8wNDZxZnlnTTh3TUJIOEM2QjUvVkJMSEtYTWp0Rkd2bWp4ZGZ5RDZMcm81ZmgweHBULzdzbm9JU0tmbHY2Wm8vSnpnbWwwNG8rdFJHdz09IiDV5fjE7urz7OXt8uA9Im9CTDBjcW05eGxOTDR2TzFERTNyNG5kNzZweFdWZnZUVStVYlE4VFRRS3NpTUMwYmgwTnNQNlNDcTU4eWRIaXdTci8vVTRwSWFEc2R0UWxmZWphZ0F3PT0iIMru5M/w7uLl8OroPSIveWdGc1BGUlprRll0cWxmMzJPN3JTclFTbEpPRys1c283cVd0TlFZWlY0eVBFYmxNbTFJUXdmbll2VkVjTExOQnpwMkpzd2RlREFFb1E1N3hVeGtPdz09Ij4NCiAgPNDl6uLo5+jy+8/w7vHy7undzyDN4Ojs5e3u4uDt6OXO8OPg7ejn4Pbo6D0izs7OIMfi5efk7fvpIiDOw9DNPSIxMDAzMjE1NDAwNjU5IiDIzc09IjE4MjM2NjMyMzgiIMrPzz0iMzIxNTAxMDAxIiDE7uvm7e7x8vw9Isfg4uXk8/756Okg8err4OTu7CIg1MjOPSLD8ODk8ero6SDC6+Dk6Ozo8CDD5e7w4+jl4uj3IiDRzcjL0T0iOTY3OTE2NDU4ODkiIEUtbWFpbD0iZ3JhMV92c0BvemVyby5sdGQub29vLnJ1IiDK7uzs5e3y4PDo6T0iMTIzIiAvPg0KPC/P8O7x8uD/3c/E7urz7OXt8uA+</mid:Raw>
					</mid:SimpleSignature>
				</mid:SimpleSignatures>
			</syn:message>
		</syn:SendMessage>
	</soapenv:Body>
</soapenv:Envelope>

Ответ:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
	<s:Body>
		<SendMessageResponse xmlns="http://synerdocs.ru">
			<SendMessageResult 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>09b11f34-8187-4d2b-8a2d-da86d29d796f</a:LocalId>
						<a:ServiceId>5b476200-c27c-45fe-a443-72e3f87a4f87</a:ServiceId>
					</a:LocalServerId>
				</a:DocumentIds>
				<a:Log i:nil="true" xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/>
				<a:MessageId>3bf47d00-9f27-4fab-9d62-feb21be89838</a:MessageId>
				<a:SentDate>2018-08-24T05:50:32.2553252Z</a:SentDate>
				<a:SignIds>
					<a:LocalServerId>
						<a:LocalId>46911f34-8187-4d2b-8a2d-da86d29d796f</a:LocalId>
						<a:ServiceId>a3f12234-f236-4ea6-b337-0e3776af75fa</a:ServiceId>
					</a:LocalServerId>
				</a:SignIds>
			</SendMessageResult>
		</SendMessageResponse>
	</s:Body>
</s:Envelope>
⚠️ **GitHub.com Fallback** ⚠️