6. Pieprasījumu servisa biznesa transakcijas izsaukšanas pieprasījums

Pieprasījumu servisa biznesa transakcijas izsaukšanas pieprasījuma satura XML elementi tiek aprakstīti atbilstoši šādiem standartiem:

  • Envelope, Header, Body – SOAP v1.2;
  • Action, MessageID, ReplyTo, To – WS-Addresing v1.0;
  • Security, Timestamp – WS-Security v1.1;
  • Security elementa saturs – SAML Token Profile v1.1;
  • StartTransaction.

Ziņojuma piemērs:

<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">

<s:Header>

<a:Action s:mustUnderstand="1">http://ivis.eps.gov.lv/ISS/RequestServiss/v1-0/StartTransaction</a:Action>

<a:MessageID>urn:uuid:ff7d698f-f90b-4a1a-be2d-1f7bb0c8afe6</a:MessageID>

<a:ReplyTo>

<a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address>

</a:ReplyTo>

<a:To s:mustUnderstand="1">https://ausmatest8.vraa.gov.lv/Request.WebService/v1-9/WcfService/ws2007FederationNoSct</a:To>

<o:Security s:mustUnderstand="1" xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">

<u:Timestamp u:Id="_0">

<u:Created>2015-09-09T12:51:19.195Z</u:Created>

<u:Expires>2015-09-09T12:56:19.195Z</u:Expires>

</u:Timestamp>

<EncryptedAssertion xmlns="urn:oasis:names:tc:SAML:2.0:assertion">

<xenc:EncryptedData Type="http://www.w3.org/2001/04/xmlenc#Element" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">

<xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-cbc"></xenc:EncryptionMethod>

<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">

<e:EncryptedKey xmlns:e="http://www.w3.org/2001/04/xmlenc#">

<e:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p">

<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></DigestMethod>

</e:EncryptionMethod>

<KeyInfo>

<o:SecurityTokenReference>

<X509Data>

<X509IssuerSerial>

<X509IssuerName>CN=IVIS Root CA</X509IssuerName>

<X509SerialNumber>526677922334502603980825</X509SerialNumber>

</X509IssuerSerial>

</X509Data>

</o:SecurityTokenReference>

</KeyInfo>

<e:CipherData>

<e:CipherValue>G2TwcGwLwvzZzE/wblyJdBgJtj40BcAaBrljfk4uwLDInq5Lrg+wrDuS4m7+55W6XJeCYhPjVqRMC9z3ZOCJRa0uGfdAti7n5JcTKBQeEcIQI56Rqglbd/s1JphTQgST76O8n6NAMavOC6+qB8Fpa1TTV9i6i5WJvvSmm0Xr69s=</e:CipherValue>

</e:CipherData>

</e:EncryptedKey>

</KeyInfo>

<xenc:CipherData>

<xenc:CipherValue>GZDHOLhHw6j1gnB+rn8mr/LceyXgcKy5DYZKa8kDI27YfQgDddiXCtjgcFf5a3bdcgU5z+fJY4wDwgDwfipZTHn5fV3ibTA0mtyTrfLOMzcBPvVCztm1cieLKqMUZdzI47btzVZW0C0WGDa8dH1AGDVHs5YmCenmI+gNzP/G7St6bgopjAtfvvvK/dmU/FGWaxjDxW/w4rINgN5pnbOcXwgLarIBxxY2zByZEw/12eLvM+mnxhe/8WVC5/SBMhc8OQOx2ztTQRhKpUQyCAOf4KCthfttHgfOCsnhahKIImNXjUoQAfEWmYJw/ /IXp4mB9ibQKeQORxUhZV++ZpmWwWU8a0eOPZWFr5h/i4jCJFgDBhhruLOom5dC2SgMnZ61kMRJxIYgCYdFjn2PtuGcxhLbk2xHymK3FqaIQps5jE9G4ll0J7+QDS5s8Z1RqJQv0Xc2Qf7SWZrkPmvOwvVf6NmNdiFMsnOvmDhnZMsdintQULat5nWidTzProc5J+4pDzh3TLolOtpsfst/VYaz7SpXamtRFcgPDyWtG8HOoL233dxfqZy+5TQffA6D5JQ==</xenc:CipherValue>

</xenc:CipherData>

</xenc:EncryptedData>

</EncryptedAssertion>

<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">

<SignedInfo>

<CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></CanonicalizationMethod>

<SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#hmac-sha1"></SignatureMethod>

<Reference URI="#_0">

<Transforms>

<Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></Transform>

</Transforms>

<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></DigestMethod>

<DigestValue>iuT3099mK1e98AyhF61ouy5eydg=</DigestValue>

</Reference>

</SignedInfo>

<SignatureValue>azVYxgqmP+b6lSPDC3mhdYN9Khw=</SignatureValue>

<KeyInfo>

<o:SecurityTokenReference b:TokenType="http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV2.0" xmlns:b="http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd">

<o:KeyIdentifier ValueType="http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLID">_bbe19297-fda4-4a2b-9b19-62dca967d37b</o:KeyIdentifier>

</o:SecurityTokenReference>

</KeyInfo>

</Signature>

</o:Security>

</s:Header>

<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<StartTransaction xmlns="http://ivis.eps.gov.lv/ISS/RequestServiss/v1-0">

<eServiceID>URN:IVIS:100001:EP-TEST01-v1-0</eServiceID>

</StartTransaction>

</s:Body>

</s:Envelope>

Noradītajā piemērā Pieprasījuma servisa izsaukums ir veikts, izmantojot metodi “../ws2007FederationNoSct” atbilstoši WS-* standartam:

Name

SOAP

WS-Trust

WS-Addressing

WS-Security

ws2007FederationNoSct

V1.2

V1.3

2005/08

V1.1