NonStop SOAP User's Manual

NonStop SOAP with Digital Signatures
NonStop SOAP User’s Manual520501-012
7-6
NonStop SOAP Header for Digital Signature
Example 7-1. NSSOAP Header with Digital Signature
POST /HP-NED-ORDER HTTP/1.1
Host: www.hponline.com
Content-Type: text/xml; charset="UTF-8"
Content-Length: NNNN
SOAPAction: "http://www.hponline.com/HP-NED-ORDER#buy"
<SOAP-ENV:Envelope xmlns:SOAP-
ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header>
<SOAP-SEC:Signature xmlns:SOAP-
SEC=http://schemas.xmlsoap.org/soap/security/2000-12>
<ds:Signature
xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:SignedInfo>
<ds:CanonicalizationMethod
Algorithm="http://www.w3.org/TR/2000/CR-xml-c14n-20001026"/>
<ds:SignatureMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
<ds:Reference URI="#Body">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/TR/2000/CR-
xml-c14n-20001026"/>
</ds:Transforms>
<ds:DigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
<ds:DigestValue>j6lwx3rvEPO0vKtMup4NbeVu8nk=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>MC0CFFrVLtRlk=...
</ds:SignatureValue>
<ds:KeyInfo>
</ds:KeyInfo>
</ds:Signature>
</SOAP-SEC:Signature>
</SOAP-ENV:Header>
<SOAP-ENV:Body xmlns:SOAP-
SEC="http://schemas.xmlsoap.org/soap/security/2000-12" SOAP-
SEC:id="Body"><HP-NED-ORDER:buy xmlns:HP-NED-
ORDER="http://www.hponline.com/HP-NED-ORDER ">
<HP-NED-ORDER:product-symbol>TANDEM SERVERS</HP-NED-ORDER:product-
symbol>
<HP-NED-ORDER:quantity>100</HP-NED-ORDER:quantity>
<HP-NED-ORDER:market>Cupertino</HP-NED-ORDER:market>
</HP-NED-ORDER:buy>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>