> -----Original Message----- > From: Erwin Burgstaller [mailto:[EMAIL PROTECTED]] On Behalf > Of Erwin Burgstaller > Sent: Thursday, March 14, 2002 12:04 PM > To: [EMAIL PROTECTED] > Subject: Cocoon2, SOAP: How to process xml-content? > > > > I have a SOAP service which produces well formed xml-content. > I want to > get data from that service into a cocoon xsp application. At > the moment > the result looks like this: > > [..] > > <SOAP-ENV:Body> > <namesp3:list_allResponse xmlns:namesp3="urn:Stlist"> > <s-gensym15 xsi:type="xsd:string"><?xml version="1.0"?> > <times> > <sdate>2002.01.07</sdate><stime>07:58:59< > /stime><edate>2002.01.07</edate><etime>12 > :01:49</etime><project>0099</project><brg > roup>06</bgroup><comment>209 > > [..] > > This is without processing any stylesheet. > > My question is: How can I prohibit the xml-code to be converted to > text, or how can transform it back to xml to be processed by a > stylesheet later. The intention is to handle it like files > with "xinclude". > > Thanks, > Erwin
Why not have the service return a org.w3c.dom.Element - that will produce xml directly in the SOAP response. Your deployment descriptor would have an entry like this example I ran: <isd:mappings> <isd:map encodingStyle="http://xml.apache.org/xml-soap/literalxml" xmlns:x="urn:ExercisePubs" qname="x:book-element" javaType="org.w3c.dom.Element" java2XMLClassName= "org.apache.soap.encoding.literalxml.XMLParameterSerializer" xml2JavaClassName= "org.apache.soap.encoding.literalxml.XMLParameterSerializer" /> </isd:mappings> [EMAIL PROTECTED] Author of Soap Programming with Java - Sybex; ISBN: 0782129285 --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>