Title: Nachricht
Steve,
 
AFAIK the XML Signature specifications and the current
implementation does not support the signing of attachments.
 
Have a look as Apache's WSS4J project how to deal with
SOAP security, it's an implementation of the Oasis WSS
specification. Anyhow, also this does no support to directly
sign and/or encrypt attachments.
 
Regards,
Werner
-----Ursprüngliche Nachricht-----
Von: Stephen Chell (DSL AK) [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 25. März 2004 05:54
An: '[EMAIL PROTECTED]'
Betreff: Example code for signing a SOAP message with Attachments

Hi all,

 

I wish to create an XML Signature over the SOAP envelope and all attachments of a SOAPMessage (created using the SAAJ api).  The attachments could consist of a mix of XML documents and binary files.  The signature itself should be placed as an element within the SOAPHeader.  Thus, the signature will be a enveloped signature with respect to the SOAPPart, but a detached signature with respect to the attachments.

 

Can some kind soul please point me in the direction of some example code of how to create the signature?   In particular I would like to see how to point the signature to the attachments, and set up appropriate reference resolvers if need be.

 

Thanks in advance...

 

Steve

 

Reply via email to