You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by Boon Tuck <ya...@bii.a-star.edu.sg> on 2003/10/13 05:24:57 UTC

Signing SOAP envelope

Hello,
     I am using the sample AxisSigner.java provided by the xml-sec 
distribution as an example to sign SOAP envelopes. Then, I came across a 
Web Services security document on SOAP signatures. This document put 
forward by IBM, Microsoft and Verisign 
(http://www-106.ibm.com/developerworks/webservices/library/ws-secure/) 
highlights that the Enveloped Signature Transform defined in the W3C XML 
Signature should not be used. This is due to the mutability of some SOAP 
headers. Instead, messages should explicitly include the desired 
elements to be signed. Thus, I decided to reference my element for 
signing instead of setting the uri of the reference element to " ". I 
found an example in the sister project Axis (http://ws.apache.org/axis/) 
 in the samples/security directory on signing SOAP directory. That 
example adds #Body as the reference for signing. But the uri "#Body" was 
not created in the SOAP envelope by the Axis distribution.

    I am now quite confused on how to sign SOAP envelopes. Can anyone 
enlighten me on the correct way to sign a SOAP envelope?

Thank you.

Regards,
Boon Tuck