CreateSimpleSignature_ForIncomingDocument - 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>
<syn:credentials>
<mid:AuthToken>9628411f-525e-4ae6-bf80-043f83234b4d</mid:AuthToken>
<mid:BoxAddress>[email protected]</mid:BoxAddress>
</syn:credentials>
<syn:request>
<mid:Comment>123</mid:Comment>
<mid:Document i:type="mid:SimpleSignatureCreationDocumentId">
<mid:Id>73d376a4-ffe4-4186-aed5-21500f874321</mid:Id>
</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>r2f+XUUSZmU1+xwlNClsZc+mYkiO+SbUVBNGBIhZhoXwdlzlQ++/0DH4JzskJrGw673x/nLogbj/Fq02vRgMog==</a:AttributesHash>
<a:DocumentHash>Tf9Oo0DwqCPxXT9PAati6uDl2lecy4Ufjbnf6ExYsrN7iZA6dA4e4XLaeTpuedVg5ff5vQWKEqKAQz7W+kZRCg==</a:DocumentHash>
<a:DocumentId>73d376a4-ffe4-4186-aed5-21500f874321</a:DocumentId>
<a:Id i:nil="true"/>
<a:IsValid>true</a:IsValid>
<a:Raw>PD94bWwgdmVyc2lvbj0iMS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: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>Заведующий складом № 1</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-05T04:12:34.6777479Z</a:SignedAt>
<a:ValidationCode>kSG7fNpLx06Yo6YjS0RRPF+szzoGnUJhXtzr8Kbn5sWkbe+rf8n8dLembl4EbLoHrTuiJYB7r5JfXQma7T/++A==</a:ValidationCode>
<a:Version>1.0</a:Version>
</a:Signature>
</CreateSimpleSignatureResult>
</CreateSimpleSignatureResponse>
</s:Body>
</s:Envelope>