Yea thanks. In fact I got this code from the repository.
Thanks Vignesh. -----Original Message----- From: Soumadeep [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 25, 2006 4:23 PM To: Vignesh M.P.N.; [email protected] Subject: RE: AxisUtil for wss4j 1.1?! Try this, public SOAPMessage toSOAPMessage(Document doc) throws Exception { Canonicalizer c14n = Canonicalizer.getInstance(Canonicalizer.ALGO_ID_C14N_WITH_COMMENTS); byte[] canonicalMessage = c14n.canonicalizeSubtree(doc); ByteArrayInputStream in = new ByteArrayInputStream(canonicalMessage); MessageFactory factory = MessageFactory.newInstance(); return factory.createMessage(null, in); } Soumadeep -----Original Message----- From: Vignesh M.P.N. [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 26, 2006 1:49 AM To: [email protected] Subject: AxisUtil for wss4j 1.1?! Hi all I have been programming using wss4j 1.1 for the past 3 days. I couldn't find AxisUtil in the package org.apache.ws.axis.security.util. Is there any other work around to convert the "Document" object to a "Message" object? I mean anything that replaces "toSOAPMessage()" method of AxisUtil? I am aware that the testers are using ws-wss4j/test/wssec/SOAPUtil.java as a replacement. http://www.mail-archive.com/[email protected]/msg00117.html Is there any way that it is available in the API? Please help. Thanks Vignesh. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
