Here is a simple SOAP RPC-style document that invokes the method testMethod on a SOAP service located at http://localhost:8080/LogTestService.
Now the same document is shown below after it has been signed. Several elements have been highlighted for discussion purposes. Note that the Header element now includes a SOAP-SEC:Signature element whose body conforms to the XML-Signature specification. The ds:DigestValue element represents the digest of the SOAP-ENV:Body element as highlighted in the above document. It is the ds:Reference object that defines the content being signed through its URI attribute, the value of which is #Body, indicating the Body element of the current document. The ds:SignatureValue element represents the digital signature of the XML Signature document, as specified by the XML Signature specification. The ds:KeyInfo element provides the X.509 certificate and public key details for use by the server for signature verification.