> -----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">&lt;?xml version="1.0"?&gt;
> &lt;times&gt;
> &lt;sdate&gt;2002.01.07&lt;/sdate&gt;&lt;stime&gt;07:58:59&lt;
> /stime&gt;&lt;edate&gt;2002.01.07&lt;/edate&gt;&lt;etime&gt;12
> :01:49&lt;/etime&gt;&lt;project&gt;0099&lt;/project&gt;&lt;brg
> roup&gt;06&lt;/bgroup&gt;&lt;comment&gt;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]>

Reply via email to