You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Alberto Brosich <ab...@ogs.trieste.it> on 2007/09/26 14:07:36 UTC

SOAP logicsheet places XML result as text

I'm trying to use SOAP xsp logicsheet to query a web service.

This is the content of my xsp file:

<?xml version="1.0" encoding="ISO-8859-1"?>

<xsp:page
language="java"
xmlns:xsp="http://apache.org/xsp"
xmlns:xsp-request="http://apache.org/xsp/request/2.0"
xmlns:soap="http://apache.org/xsp/soap/3.0"
>

<page>
<soap:call url="http://grid.bodc.nerc.ac.uk/axis/services/VocabServerAPI">
<getList>
<getListRequest><xsp-request:get-parameter
name="vocab"/>,<xsp-request:get-parameter name="key"/></getListRequest>
</getList>
</soap:call>
</page>

</xsp:page>


The logicsheet returns a well formed SOAP envelope
<soapenv:Envelope>
-
<soapenv:Body>
-
<getListResponse
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
-
<getListReturn xsi:type="soapenc:Array" soapenc:arrayType="xsd:string[1]">
-
<item>
<codeTableRecord><entryKey>A01X</entryKey><entryTerm>Sedimentation flux
of alkenones and alkenoates in the water
column</entryTerm><entryTermAbbr>WC_SedFluxAlkeno</entryTermAbbr><entryTermDef>null</entryTermDef><entryTermLastMod>2004-08-19
08:26:42.0</entryTermLastMod></codeTableRecord>
</item>
</getListReturn>
</getListResponse>
</soapenv:Body>
</soapenv:Envelope>


but the content of the <item> tag
(<codeTableRecord>...</codeTableRecord>) is pure text (&gt; as ">" and
&lt; as "<") so I cannot handle it as XML in the pipeline.

What's wrong? My request, the web service?

Thanks in advance

Alberto


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org