You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by "Stephen Chell (DSL AK)" <St...@datacom.co.nz> on 2004/03/25 05:54:24 UTC
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
Re: Example code for signing a SOAP message with Attachments
Posted by trebor iksrazal <ik...@yahoo.com>.
--- "Stephen Chell (DSL AK)" <St...@datacom.co.nz>
wrote:
> 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
>
>
>
>
Check out the sample chapter from
http://www.j2ee-security.net/ or the apache wss4j
project. If you still need help, perhaps I can post
some code.
iksrazal
__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html