Title: Message
Since you have an immediate requirement, I suggest you use WASP 4.6 beta. As far as I know it's the only Java implementation that support WS-Security. See http://www.systinet.com/products/beta/overview.
 
Anne
----- Original Message -----
Sent: Tuesday, June 24, 2003 8:34 AM
Subject: Howto : w3c.dom.Element to SOAPHeader

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

   

 

   
 
 
 

Reply via email to