Advertisement
dpcpaste

example soap ws-security

Jun 10th, 2019
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.68 KB | None | 0 0
  1. <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v0="http://fina.hr/eracun/b2g/pki/Echo/v0.1" xmlns:v01="http://fina.hr/eracun/b2g/invoicewebservicecomponents/v0.1">
  2.    <soapenv:Header>
  3.       <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" soapenv:mustUnderstand="1">
  4.          <wsu:Timestamp wsu:Id="TS-B19E518BC7EFC45C7115601555194286">
  5.             <wsu:Created>2019-06-10T08:31:59.427Z</wsu:Created>
  6.             <wsu:Expires>2019-06-11T08:31:59.427Z</wsu:Expires>
  7.          </wsu:Timestamp>
  8.          <wsse:BinarySecurityToken EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" wsu:Id="X509-B19E518BC7EFC45C7115601555193381">MIIGmDCCBICgAwIBAgIRAJU3uhYso3jEAAAAAFMs......</wsse:BinarySecurityToken>
  9.          <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="SIG-B19E518BC7EFC45C7115601555193915">
  10.             <ds:SignedInfo>
  11.                <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
  12.                   <ec:InclusiveNamespaces xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="soapenv v0 v01" />
  13.                </ds:CanonicalizationMethod>
  14.                <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
  15.                <ds:Reference URI="#id-B19E518BC7EFC45C7115601555193734">
  16.                   <ds:Transforms>
  17.                      <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
  18.                         <ec:InclusiveNamespaces xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="v0 v01" />
  19.                      </ds:Transform>
  20.                   </ds:Transforms>
  21.                   <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
  22.                   <ds:DigestValue>NptJLahkzxgEF+RFVaa2dmQDH68=</ds:DigestValue>
  23.                </ds:Reference>
  24.             </ds:SignedInfo>
  25.             <ds:SignatureValue>ejFObXel1vciJ90BCt3/QphaDv4mDIxqdcjstab8744mbEyxa33cGqn4EFtFpDk+hgzc3yx+/6rQ
  26. aaWpdntoJbHVngoJAtVzsvGjT+5kN5KSGejx687ycvL4KXhk4PZvJvaqkIL+cQ2TqCR7PdQsS3xs
  27. wFzkt3d5/wNWlYqxWgsmdYVPCQ/OVNlM7uTZckL2w/wCTJWJqSqVlbWgZ1pxN3LPs3t0c33TYI4l
  28. 6hXhljFqECkh4Etc8WYWrO9+LsuKnp8/e9ip4bTJhWCei6s1hFP2BPW8oJgZI7q8LtsShOo2lNLC
  29. 7HKORUbm+HvD6pBXbu/JkgAVm0/GUJGYEDZyZQ==</ds:SignatureValue>
  30.             <ds:KeyInfo Id="KI-B19E518BC7EFC45C7115601555193672">
  31.                <wsse:SecurityTokenReference wsu:Id="STR-B19E518BC7EFC45C7115601555193693">
  32.                   <wsse:Reference URI="#X509-B19E518BC7EFC45C7115601555193381" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" />
  33.                </wsse:SecurityTokenReference>
  34.             </ds:KeyInfo>
  35.          </ds:Signature>
  36.       </wsse:Security>
  37.    </soapenv:Header>
  38.    <soapenv:Body xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="id-B19E518BC7EFC45C7115601555193734">
  39.       <v0:EchoMsg>
  40.          <v01:HeaderSupplier>
  41.             <v01:MessageID>msgid01</v01:MessageID>
  42.             <v01:SupplierID>9934:12345678901</v01:SupplierID>
  43.             <v01:MessageType>9999</v01:MessageType>
  44.             <v01:MessageAttributes>Atributi</v01:MessageAttributes>
  45.          </v01:HeaderSupplier>
  46.          <v0:Data>
  47.             <v0:EchoData>
  48.                <v0:Echo>test messasge 01</v0:Echo>
  49.             </v0:EchoData>
  50.          </v0:Data>
  51.       </v0:EchoMsg>
  52.    </soapenv:Body>
  53. </soapenv:Envelope>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement