Bryan,
pls
have a look into the WSDoAllSender Axis handler that is part
of
the
WSS4J sources. This handler takes the SOAP request
constructed
by
Axis, extracts it as a DOM document and performs the
Signature
actions as specified in the deployment file. After that it takes
some
measures to replace the _original_ SOAP request (or response)
with
the
signed one. If you would like to program that whole stuff
yourself
then
you may take the handlers as a template.
Did
you look into the interop examples, most notably into the
deployment files of the interop? Here you'll find examples for
several
ways
of Signature, Encryption etc. The "spec" directory contains
the
according WSS interop specifications.
Regards,
Werner
-----Urspr�ngliche Nachricht-----Using Axis and WS-FX, I have created a response in a SOAPEnvelope, and then I use WS-FX to sign it:
Von: Bryan Field-Elliot [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 12. Mai 2005 07:27
An: WS-FX
Betreff: WS-FX after signing, how to replace my response?
SOAPEnvelope response = ......;
Document respDoc = (WSSignEnvelope)signer.build(response.getAsDocument(), crypto);
What is the correct way to copy the respDoc (signed document) back into the SOAPEnvelope? I seem to be having trouble getting this right, without polluting the document and ruining the signature.
Help would be appreciated!
Thank you,
Bryan
