Anropsexempel eLeg

Anropsexempel med BankId

<?xml version="1.0"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> 
     <soapenv:Header>
          <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"> 

               <saml2p:Response xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol"IssueInstant="..." Version="2.0" ID="..." >

                    <saml2:Issuer xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion">https://idp.example.org/>

                    <saml2p:Status>
                         <saml2p:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success"/>
                    </saml2p:Status>

                    <saml2:Assertion xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:xs="http://www.w3.org/2001/XMLSchema" IssueInstant="..." Version="2.0" ID="..." ;>

                         <saml2:Issuer>https://idp.example.org/>

                         <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#"> 
                              <ds:SignedInfo>
                                   <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
                                   <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
                                   <ds:Reference URI="#_c9a5d647ef4493b4de5f0fd86f663397">
                                        <ds:Transforms>
                                             <ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/> 
                                             <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
                                                  <ec:InclusiveNamespaces PrefixList="xs" xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#"/>
                                             </ds:Transform>
                                        </ds:Transforms>
                                        <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
                                        <ds:DigestValue>t+/NK1iUxm1ekSfiqltDgIzmlnk=</ds:DigestValue>
                                   </ds:Reference>
                              </ds:SignedInfo>
                              <ds:SignatureValue>...</ds:SignatureValue>
                              <ds:KeyInfo>
                                   <ds:KeyValue>
                                        <ds:RSAKeyValue>
                                             <ds:Modulus>...</ds:Modulus>
                                             <ds:Exponent>AQAB</ds:Exponent>
                                        </ds:RSAKeyValue>
                                   </ds:KeyValue>
                                   <ds:X509Data>
                                        <ds:X509Certificate>Base64 krypterat certifikat...</ds:X509Certificate>
                                   </ds:X509Data>
                              </ds:KeyInfo>
                         </ds:Signature> 

                         <saml2:Subject>
                              <saml2:NameID Format="urn:oasis:names:tc:SAML:2.0:nameid-format:transient">...</saml2:NameID>
                              <saml2:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer">
                                   <saml2:SubjectConfirmationData NotOnOrAfter="2017-08-22T11:00:38.641Z"/>
                              </saml2:SubjectConfirmation>
                         </saml2:Subject>

                         <saml2:Conditions NotBefore="2017-08-22T10:10:38.641Z" NotOnOrAfter="2017-08-22T11:00:38.641Z">
                              <saml2:AudienceRestriction>
                                   <saml2:Audience>https://sp.example.se/>
                              </saml2:AudienceRestriction>
                         </saml2:Conditions>

                         <saml2:AuthnStatement AuthnInstant="2017-08-22T10:15:38.730Z">
                              <saml2:SubjectLocality/>
                              <saml2:AuthnContext>
                                   <saml2:AuthnContextClassRef>urn:oasis:names:tc:SAML:2.0:ac:classes:SoftwarePKI</saml2:AuthnContextClassRef>
                              </saml2:AuthnContext>
                         </saml2:AuthnStatement>
                         <saml2:AttributeStatement>
                              <saml2:Attribute Name="Attribut-1">
                                   <saml2:AttributeValue xsi:type="xs:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">XYZ>
                              </saml2:Attribute>
                              <saml2:Attribute Name="Attribut-2">
                                   <saml2:AttributeValue xsi:type="xs:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">XYZ>
                              </saml2:Attribute>
                              .
                              .
                              .
                              <saml2:Attribute Name="Attribut-n">
                                   <saml2:AttributeValue xsi:type="xs:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">XYZ>
                                   </saml2:Attribute>
                         </saml2:AttributeStatement>

                    </saml2:Assertion>
               </saml2p:Response>
          </wsse:Security>

          <ehm:ehm xmlns:ehm="urn:riv:se.ehalsomyndigheten:core:systeminformation:4"> 
               <ehm:systemnamn>Systemet ABC</ehm:systemnamn> 
               <ehm:systemversion>12.4</ehm:systemversion>
               <ehm:modulversion>11111</ehm:modulversion>
               <ehm:systeminformation>Aktörens systeminformation</ehm:systeminformation>
          </ehm:ehm>

     </soapenv:Header>

     <soapenv:Body>
          <urn:VerifieraRollPrivatperson xmlns:urn="urn:riv:se.apotekensservice:referens:VerifieraRollPrivatpersonResponder:1">
               <urn:extension/>
          </urn:VerifieraRollPrivatperson>
     </soapenv:Body>

</soapenv:Envelope>​