Detached Signature

 1 <?xml version="1.0" encoding="UTF-8"?>
 2 <env:Envelope
 3  xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
 4  xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/"
 5  xmlns:ns0="http://xmlsoap.org/Ping"
 6  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
 7  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 8    <env:Header>
 9       <wsse:Security
10        xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
11        env:mustUnderstand="1">
12          <wsse:BinarySecurityToken
13           xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
14           EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"
15           ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"
16           wsu:Id="30">deleted</wsse:BinarySecurityToken>
17 
18          <ds:Signature
19           xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
20             <ds:SignedInfo>
21                <ds:CanonicalizationMethod
22                 Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
23                   <InclusiveNamespaces
24                    xmlns="http://www.w3.org/2001/10/xml-exc-c14n#"
25                    PrefixList="wsse enc env ns0 xsd xsi" />
26                </ds:CanonicalizationMethod>
27 
28                <ds:SignatureMethod
29                 Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
30 
31                <ds:Reference
32                 URI="#20">
33                   <ds:DigestMethod
34                    Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
35 
36                   <ds:DigestValue>IUQMWH6FPY7RDXdEB+IMuTRm+sg=</ds:DigestValue>
37                </ds:Reference>
38 
39                <ds:Reference
40                 URI="#10">
41                   <ds:DigestMethod
42                    Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
43 
44                   <ds:DigestValue>TBVRFHU2HMee4uU4XkR8+cVQMJk=</ds:DigestValue>
45                </ds:Reference>
46             </ds:SignedInfo>
47 
48             <ds:SignatureValue>deleted</ds:SignatureValue>
49 
50             <ds:KeyInfo>
51                <wsse:SecurityTokenReference
52                 xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
53                 wsu:Id="40">
54                   <wsse:Reference
55                    URI="#30"
56                    ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" />
57                </wsse:SecurityTokenReference>
58             </ds:KeyInfo>
59          </ds:Signature>
60 
61          <wsu:Timestamp
62           xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
63           wsu:Id="10">
64             <wsu:Created>2005-12-19T10:44:10Z</wsu:Created>
65 
66             <wsu:Expires>2005-12-19T10:44:15Z</wsu:Expires>
67          </wsu:Timestamp>
68       </wsse:Security>
69    </env:Header>
70 
71    <env:Body
72     xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
73     wsu:Id="20">
74       <ns0:Ping>
75          <ns0:ticket>SUNW</ns0:ticket>
76 
77          <ns0:text>Hello !</ns0:text>
78       </ns0:Ping>
79    </env:Body>
80 </env:Envelope>