Jump to: navigation, search

Web Service SOAP Messages

Use the examples below when configuring the Web Service block.

SOAP Message Level Basic Authentication

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
              <SOAP-ENV:Header>
                           <h:BasicAuth xmlns:h="http://soap-authentication.org/basic/2001/10/" mustUnderstand="1">
                                       <Name>UserName</Name>
                                       <Password>Pass</Password>
                          </h:BasicAuth>
              </SOAP-ENV:Header>
              <SOAP-ENV:Body>
                            <p:getNumber xmlns:p="http://webservice.com"/>
              </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

SOAP Message Signed Using Client Digital Certificate (DSA Key Algorithm)

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header>
<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" SOAP-ENV:mustUnderstand="1">
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="SIG-2">
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<ec:InclusiveNamespaces xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="SOAP-ENV"/>
</ds:CanonicalizationMethod>
<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#dsa-sha1"/>
<ds:Reference URI="#id-1">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"><ec:InclusiveNamespaces xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#"  PrefixList=""/>
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><ds:DigestValue>yMmgdHRevOnFPGtnSZx4JV9hiuI=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue>MX9c9C5Tpfvp32e2pPjkCv4ycZhcuZVMFHo8DlGKWi331fnG3oqXLg==</ds:SignatureValue><ds:KeyInfo Id="KI-8D7856F18A7AB8CF5613098009924472">
<wsse:SecurityTokenReference wsu:Id="STR-8D7856F18A7AB8CF5613098009924473">
<wsse:KeyIdentifier 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">MIICwDCCAn2gAwIBAgIETfBxZzALBgcqhkjOOAQDBQAwQzELMAkGA1UEBhMCVVMxDDAKBgNVBAoTA1N1bjERMA8GA1UECxMISmF2YVNvZnQxEzARBgNVBAMTCk1hcmsgSm9uZXMwHhcNMTEwNjA5MDcwODIzWhcNMTExMjA2MDcwODIzWjBDMQswCQYDVQQGEwJVUzEMMAoGA1UEChMDU3VuMREwDwYDVQQLEwhKYXZhU29mdDETMBEGA1UEAxMKTWFyayBKb25lczCCAbcwggEsBgcqhkjOOAQBMIIBHwKBgQD9f1OBHXUSKVLfSpwu7OTn9hG3UjzvRADDHj+AtlEmaUVdQCJR+1k9jVj6v8X1ujD2y5tVbNeBO4AdNG/yZmC3a5lQpaSfn+gEexAiwk+7qdf+t8Yb+DtX58aophUPBPuD9tPFHsMCNVQTWhaRMvZ1864rYdcq7/IiAxmd0UgBxwIVAJdgUI8VIwvMspK5gqLrhAvwWBz1AoGBAPfhoIXWmz3ey7yrXDa4V7l5lK+7+jrqgvlXTAs9B4JnUVlXjrrUWU/mcQcQgYC0SRZxI+hMKBYTt88JMozIpuE8FnqLVHyNKOCjrh4rs6Z1kW6jfwv6ITVi8ftiegEkO8yk8b6oUZCJqIPf4VrlnwaSi2ZegHtVJWQBTDv+z0kqA4GEAAKBgHkpjztZI0n2zpnrb1sTNgtyUFT71ntv9gBuK0voURj51iRs1eHt4HGD6NjSE79w8HMG/5Ykhco6lMBRRncJwGuWB/mFPhaX8Odfj8NMEih1+ICIjhVwGk1p6P3Gu2Dm+45TYJCxBktdOlU0uy/Uj8E61NZSaeQL9WA4gGz5Hb5uMAsGByqGSM44BAMFAAMwADAtAhQqfbMb9hd1vpBAAJntCDSOY5uP2AIVAJGy1E7Zx4268n3fD34gLcpkZoKc</wsse:KeyIdentifier>
</wsse:SecurityTokenReference>
</ds:KeyInfo>
</ds:Signature>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="id-1">
<p:methodName xmlns:p="http://example.com"><key>value</key></p:methodName>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope> 

SOAP Message Signed Using Client Digital Certificate (RSA Key Algorithm)

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header>
<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" SOAP-ENV:mustUnderstand="1">
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="SIG-2">
<ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<ec:InclusiveNamespaces xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="SOAP-ENV"/>
</ds:CanonicalizationMethod>
<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
<ds:Reference URI="#id-1">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"><ec:InclusiveNamespaces xmlns:ec=
"http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList=""/>
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
<ds:DigestValue>yMmgdHRevOnFPGtnSZx4JV9hiuI=
</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>MX9c9C5Tpfvp32e2pPjkCv4ycZhcuZVMFHo8DlGKWi331fnG3oqXLg==</ds:SignatureValue>
<ds:KeyInfo Id="KI-8D7856F18A7AB8CF5613098009924472">
<wsse:SecurityTokenReference wsu:Id="STR-8D7856F18A7AB8CF5613098009924473">
<wsse:KeyIdentifier 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">MIICwDCCAn2gAwIBAgIETfBxZzALBgcqhkjOOAQDBQAwQzELMAkGA1UEBhMCVVMxDDAKBgNVBAoTA1N1bjERMA8GA1UECxMISmF2YVNvZnQxEzARBgNVBAMTCk1hcmsgSm9uZXMwHhcNMTEwNjA5MDcwODIzWhcNMTExMjA2MDcwODIzWjBDMQswCQYDVQQGEwJVUzEMMAoGA1UEChMDU3VuMREwDwYDVQQLEwhKYXZhU29mdDETMBEGA1UEAxMKTWFyayBKb25lczCCAbcwggEsBgcqhkjOOAQBMIIBHwKBgQD9f1OBHXUSKVLfSpwu7OTn9hG3UjzvRADDHj+AtlEmaUVdQCJR+1k9jVj6v8X1ujD2y5tVbNeBO4AdNG/yZmC3a5lQpaSfn+gEexAiwk+7qdf+t8Yb+DtX58aophUPBPuD9tPFHsMCNVQTWhaRMvZ1864rYdcq7/IiAxmd0UgBxwIVAJdgUI8VIwvMspK5gqLrhAvwWBz1AoGBAPfhoIXWmz3ey7yrXDa4V7l5lK+7+jrqgvlXTAs9B4JnUVlXjrrUWU/mcQcQgYC0SRZxI+hMKBYTt88JMozIpuE8FnqLVHyNKOCjrh4rs6Z1kW6jfwv6ITVi8ftiegEkO8yk8b6oUZCJqIPf4VrlnwaSi2ZegHtVJWQBTDv+z0kqA4GEAAKBgHkpjztZI0n2zpnrb1sTNgtyUFT71ntv9gBuK0voURj51iRs1eHt4HGD6NjSE79w8HMG/5Ykhco6lMBRRncJwGuWB/mFPhaX8Odfj8NMEih1+ICIjhVwGk1p6P3Gu2Dm+45TYJCxBktdOlU0uy/Uj8E61NZSaeQL9WA4gGz5Hb5uMAsGByqGSM44BAMFAAMwADAtAhQqfbMb9hd1vpBAAJntCDSOY5uP2AIVAJGy1E7Zx4268n3fD34gLcpkZoKc</wsse:KeyIdentifier>
</wsse:SecurityTokenReference>
</ds:KeyInfo>
</ds:Signature>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="id-1">
<p:methodName xmlns:p="http://example.com"><key>value</key></p:methodName>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Feedback

Comment on this article:

blog comments powered by Disqus
This page was last modified on March 9, 2015, at 08:48.