--- Begin Message ---
 
I'd agree... 
 
Thot i might be able to add to it saying that you could iterate thru the SOAPBody 
elements using the getChildElements method, convert it into a MessageElement and then 
use the getAsDocument method to get it into a org.w3c.dom.Document.
 
   SOAPBody bod = (SOAPBody)env.getBody();
   Iterator it = bod.getChildElements();
   MessageElement ME = (MessageElement)it.next();
   Document Doc = ME.getAsDocument();
 
Hope this helps.
 
Nisha

        -----Original Message----- 
        From: SECRIST,MARK S (HP-FtCollins,ex1) [mailto:[EMAIL PROTECTED] 
        Sent: Thu 5/29/2003 8:23 PM 
        To: '[EMAIL PROTECTED]' 
        Cc: 
        Subject: RE: How to convert a SOAPElement into a Document
        
        

        If you were using the Axis version of SOAPBody, you could use the
        getAsDocument method to do this.  I think there is a method on
        org.apache.axis.message.MessageElement.SOAPBody to add a
        javax.xml.soap.SOAPELement.  This might work.
        
        Mark
        
        -----Original Message-----
        From: Jorge Lorenzo [mailto:[EMAIL PROTECTED]
        Sent: Thursday, May 29, 2003 1:26 AM
        To: axis
        Subject: How to convert a SOAPElement into a Document
        
        
        Hi,
        
        I need to convert the content of the SOAPBody element into a
        org.w3c.dom.Document. I know how to get the content of the body element as a
        SOAPElement object, but I cannot convert the javax.xml.soap.SOAPElement into
        a org.w3c.dom.Document. Any attempt I try, I get a ClassCastException.
        
        Any help?,
        Thanks
        
        
        

<<winmail.dat>>


--- End Message ---
**************************Disclaimer************************************

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***************************************************************************

Reply via email to