Re: Get SOAPEnvelope as String

2007-10-17 Thread Daniel Kulp
According to the DOM spec: (see the javadoc for org.w3c.dom.Node) concatenation of the textContent attribute value of every child node, excluding COMMENT_NODE and PROCESSING_INSTRUCTION_NODE nodes. This is the empty string if the node has no children. Thus, this is working per spec, although

Re: Get SOAPEnvelope as String

2007-10-17 Thread Cencio
w.w3.org/2001/XMLSchema-instance";> >>>> >>>> http://spcoop.it/cart/pdd-test";> >>>> >>> cognome="rossi"> >>>> >>>> >>>> >>>> >>>> is just >>>> >>>> >>>> >>>> >>>> It's correct? If is right how can i get the whole envelope as string? >>>> Thx >>>> Lorenzo >>>> >>>> >>> >> >> > > -- View this message in context: http://www.nabble.com/Get-SOAPEnvelope-as-String-tf4639292.html#a13252005 Sent from the cxf-user mailing list archive at Nabble.com.

Re: Get SOAPEnvelope as String

2007-10-17 Thread James Mao
If you wish to work with the String level, then just substring the content you want, or just replace it with an empty string Or You probably should use SOAPMessage.writeTo() instead of getTextContent(), Regards, James That works! Just 2 questions: the output also include i have to manual

Re: Get SOAPEnvelope as String

2007-10-17 Thread Cencio
lns:xsi="http://www.w3.org/2001/XMLSchema-instance";> >> >> http://spcoop.it/cart/pdd-test";> >> >> >> >> >> >> is just >> >> >> >> >> It's correct? If is right how can i get the wh

Re: Get SOAPEnvelope as String

2007-10-17 Thread Cencio
http://spcoop.it/cart/pdd-test";> >> >> >> >> >> >> is just >> >> >> >> >> It's correct? If is right how can i get the whole envelope as string? >> Thx >> Lorenzo >> > > -- View this message in context: http://www.nabble.com/Get-SOAPEnvelope-as-String-tf4639292.html#a13250950 Sent from the cxf-user mailing list archive at Nabble.com.

Re: Get SOAPEnvelope as String

2007-10-17 Thread Willem Jiang
Hi, Your SOAPEnvelope is not a validate XML, http://spcoop.it/cart/pdd-test";> ~~ missing the endtag Willem. Cencio wrote: Hi all, i'm trying to get the SOAPEnvelope content as String. I tryed with mySO

Re: Get SOAPEnvelope as String

2007-10-17 Thread James Mao
Try this org.apache.cxf.helpers.XMLUtils.toString(mySOAPMessage.getSOAPPart().getEnvelope()) James i'm trying to get the SOAPEnvelope content as String. I tryed with mySOAPMessage.getSOAPPart().getEnvelope().getTextContent() but the returned string of this envelope http://schemas.xmlsoap

Get SOAPEnvelope as String

2007-10-17 Thread Cencio
s:xsi="http://www.w3.org/2001/XMLSchema-instance";> http://spcoop.it/cart/pdd-test";> is just It's correct? If is right how can i get the whole envelope as string? Thx Lorenzo -- View this message in context: ht