CreateSimpleSignature_ForDocumentContent - Synerdocs/synerdocs-sdk GitHub Wiki

Запрос:

<soapenv:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:syn="http://synerdocs.ru" xmlns:mid="http://schemas.datacontract.org/2004/07/Midway.ObjectModel">
	<soapenv:Header/>
	<soapenv:Body>
		<syn:CreateSimpleSignature>
			<!--Optional:-->
			<syn:credentials>
				<mid:AuthToken>5218b1c6-dc97-4bb1-94a3-0df7511facc4</mid:AuthToken>
				<mid:BoxAddress>[email protected]</mid:BoxAddress>
			</syn:credentials>
			<!--Optional:-->
			<syn:request>
				<!--Optional:-->
				<mid:Comment>123</mid:Comment>
				<mid:Document i:type="mid:SimpleSignatureCreationDocumentData">
					<mid:Content>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0id2luZG93cy0xMjUxIj8+DQo8cmVnUmVxdWVzdCB2ZXJzaW9uPSIzLjEiIGRhdGVUaW1lPSIyOC4wMy4yMDE4IDEyOjI4OjUwIiBpZD0iNGU3OGYzZDRiYzNjNDNhYWFiMDQyOTI3ZThiMmEzNTAiIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zOnhzZD0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEiPg0KICA8dHlwZT4xPC90eXBlPg0KICA8YWJuR3VpZCAvPg0KICA8b2ZmaWNlR3VpZCAvPg0KICA8Y2F0ZWdvcnk+MTwvY2F0ZWdvcnk+DQogIDxzdG9yYWdlVHlwZT4xPC9zdG9yYWdlVHlwZT4NCiAgPGFiblR5cGU+MTwvYWJuVHlwZT4NCiAgPGlubj4zMjIxMzk5NTE5PC9pbm4+DQogIDxrcHA+MzIyMTAxMDAxPC9rcHA+DQogIDxmdWxsTmFtZT7PwM4gzufl8O376TwvZnVsbE5hbWU+DQogIDxwaG9uZS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ICA8ZW5jcnlwdD4xPC9lbmNyeXB0Pg0KICAgICAgPGNlcnRUZW1wbGF0ZT4zPC9jZXJ0VGVtcGxhdGU+DQogICAgICA8cGFzc3BvcnRUeXBlPjIxPC9wYXNzcG9ydFR5cGU+DQogICAgICA8cGFzc3BvcnRTZXJpYWw+MDA1NDYzPC9wYXNzcG9ydFNlcmlhbD4NCiAgICAgIDxwYXNzcG9ydE51bWJlcj45NDA5PC9wYXNzcG9ydE51bWJlcj4NCiAgICAgIDxwYXNzcG9ydERhdGU+MTQuMDcuMjAwOTwvcGFzc3BvcnREYXRlPg0KICAgICAgPHBhc3Nwb3J0Q29tbWVudD7u8uTl6+7sINPUzNEg0O7x8ejoIO/uINPk8fPw8vHq7ukg8OXx7/Ph6+jq5SDiIM7q8v/h8Pzx6u7sIPAt7eUg4+7w7uTgIMjm5eLx6uA8L3Bhc3Nwb3J0Q29tbWVudD4NCiAgICAgIDxwYXNzcG9ydFVuaXQ+MTIzLTAwOTwvcGFzc3BvcnRVbml0Pg0KICAgIDwvbWVtYmVyPg0KICA8L21lbWJlcnM+DQogIDxwbHVnaW5zPg0KICAgIDxwbHVnaW4gZ3VpZD0iNDY0NzJGQkEtMDY5Ri00RDQxLTlFNDktNzM2REY5MTRDQ0QxIiAvPg0KICA8L3BsdWdpbnM+DQo8L3JlZ1JlcXVlc3Q+</mid:Content>
					<mid:DocumentTypeInfo>
						<mid:DocumentType>
							<mid:Code>0</mid:Code>
						</mid:DocumentType>
					</mid:DocumentTypeInfo>
				</mid:Document>
			</syn:request>
		</syn:CreateSimpleSignature>
	</soapenv:Body>
</soapenv:Envelope>

Ответ:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body>
      <CreateSimpleSignatureResponse xmlns="http://synerdocs.ru">
         <CreateSimpleSignatureResult xmlns:a="http://schemas.datacontract.org/2004/07/Midway.ObjectModel" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
            <a:Status>
               <a:Code>0</a:Code>
               <a:Description>Операция выполнена успешно</a:Description>
               <a:Name>Success</a:Name>
            </a:Status>
            <a:ValidationResult i:nil="true"/>
            <a:Signature>
               <a:AttributesHash>zZvGaIIdkrxEKHk5uInSb92DdCpAOR8eTP0Giy+IUauvOjH3Hwh72SabSXktCV8NWWVnP5zAZ9BBfjisooylOg==</a:AttributesHash>
               <a:DocumentHash>E1UHN+e5SMoR0s7WQtJ/dTO0azIySgYHMXwjjYAilgiKvo5YWi3GcnGC0QWqV9+KtYpBPdTkDqHI1ov6K4VnWg==</a:DocumentHash>
               <a:DocumentId i:nil="true"/>
               <a:Id i:nil="true"/>
               <a:IsValid>true</a:IsValid>
               <a:Raw>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0id2luZG93cy0xMjUxIiBzdGFuZGFsb25lPSJ5ZXMiPz4NCjzP8O7x8uD/3c/E7urz7OXt8uAgxODy4NHu5+Tg7ej/PSIyMDE4LTAzLTI5VDA4OjMxOjI0LjEwNDA0MDVaIiDC5fDx6P89IjEuMCIg1eX4wPLw6OHz8u7iPSJ6WnZHYUlJZGtyeEVLSGs1dUluU2I5MkRkQ3BBT1I4ZVRQMEdpeStJVWF1dk9qSDNId2g3MlNhYlNYa3RDVjhOV1dWblA1ekFaOUJCZmppc29veWxPZz09IiDV5fjE7urz7OXt8uA9IkUxVUhOK2U1U01vUjBzN1dRdEovZFRPMGF6SXlTZ1lITVh3ampZQWlsZ2lLdm81WVdpM0djbkdDMFFXcVY5K0t0WXBCUGRUa0RxSEkxb3Y2SzRWbldnPT0iIMru5M/w7uLl8OroPSJjdWl5RmxsUFpRNGV6Q1p0ZVF2VCtNOGpFUkcvTCtzWHh1c2NiRXpmVEEzb1creTNwU2d0bWRnUVRWOHdIelpOU05WNEw1NzYvT0lNeHlYMVBTbE9lUT09Ij4NCiAgPNDl6uLo5+jy+8/w7vHy7undzyDN4Ojs5e3u4uDt6OXO8OPg7ejn4Pbo6D0iz8DOIM7n5fDt++kiIM7D0M09IjEwMTMyMjEzOTk1MTciIMjNzT0iMzIyMTM5OTUxOSIgys/PPSIzMjIxMDEwMDEiIMTu6+bt7vHy/D0i0e/l9ujg6+jx8iDv7iDHyCIg1MjOPSLD8ODk8ero6SDC6+Dk6Ozo8CDD5e7w4+jl4uj3IiDRzcjL0T0iOTY3OTE2NDU4ODkiIEUtbWFpbD0iZ3JhZF92c0BvemVyby5sdGQub29vLnJ1IiDK7uzs5e3y4PDo6T0iMTIzIiAvPg0KPC/P8O7x8uD/3c/E7urz7OXt8uA+</a:Raw>
               <a:Requisites>
                  <a:Comment>123</a:Comment>
                  <a:Employee>
                     <a:Email>[email protected]</a:Email>
                     <a:FullName>
                        <a:FirstName>Владимир</a:FirstName>
                        <a:LastName>Градский</a:LastName>
                        <a:MiddleName>Георгиевич</a:MiddleName>
                     </a:FullName>
                     <a:Position>Специалист по ЗИ</a:Position>
                     <a:Snils>96791645889</a:Snils>
                  </a:Employee>
                  <a:Organization>
                     <a:Inn>3221399519</a:Inn>
                     <a:Kpp>322101001</a:Kpp>
                     <a:Name>ПАО Озерный</a:Name>
                     <a:Ogrn>1013221399517</a:Ogrn>
                     <a:StateRegistrationCert i:nil="true"/>
                  </a:Organization>
               </a:Requisites>
               <a:SenderBoxId i:nil="true"/>
               <a:SignatureMark i:nil="true"/>
               <a:SignedAt>2018-03-29T08:31:24.1040405Z</a:SignedAt>
               <a:ValidationCode>cuiyFllPZQ4ezCZteQvT+M8jERG/L+sXxuscbEzfTA3oW+y3pSgtmdgQTV8wHzZNSNV4L576/OIMxyX1PSlOeQ==</a:ValidationCode>
               <a:Version>1.0</a:Version>
            </a:Signature>
         </CreateSimpleSignatureResult>
      </CreateSimpleSignatureResponse>
   </s:Body>
</s:Envelope>
⚠️ **GitHub.com Fallback** ⚠️