Hi all
!
Thanks
to Dims and Anne for your help in WS-Security,but I need WS-Security
instantly (my thesis ends in 4 weeks ...)
My
challange is right now transforming an w3c.dom.Element Object to an
SOAPHeader Object.
I use
Verisigns WS-Security and it produces a signed Document. But how can I put
it back to the MessageContext ???
My
Code :
Document doc = context.getCurrentMessage().getSOAPEnvelope().getAsDocument();
WSSecurity sec = new WSSecurity();
sec.sign(doc, signingKey, signingKeyInfo);
Element soapHeaderElement = (Element) ((Element) doc.getFirstChild()).getElementsByTagNameNS("*", "Header").item(0);
// context.getCurrentMessage().getSOAPEnvelope().setHeader( ???? );
It is probably very easy, but I can`t find out.
Thanks for any hint,
Kai
