<br><font size=2 face="sans-serif">I cannot tell if zoo is correct or not.
But having a CDATA in an XML document is a common thing.</font>
<br><font size=2 face="sans-serif">http://www.w3schools.com/xml/xml_cdata.asp</font>
<br>
<br><font size=2 face="sans-serif">In my case, I'm (trying) using openlayers
wps client to generate de XML to send to the wps server. Ol put  CDATA
in the XML.</font>
<br><font size=2 face="sans-serif">Steve</font>
<br><font size=2 face="sans-serif"><br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Fenoy Gerald <gerald.fenoy@geolabs.fr>@lists.osgeo.org</b>
</font>
<br><font size=1 face="sans-serif">Envoyé par : zoo-discuss-bounces@lists.osgeo.org</font>
<p><font size=1 face="sans-serif">2014-07-28 11:17</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td><font size=1 face="sans-serif">pablo zader <pzader@gmail.com></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">ZOO-discuss <zoo-discuss@lists.osgeo.org></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">Re: [Zoo-discuss] POST not implemented</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br>
<br>
<br><tt><font size=2>Dear Pablo,<br>
thanks for providing your XML request.<br>
<br>
>From my point of view, there is an issue in the request you provided, you
defined the mimeType attribute of your ComplexeData node to « text/xml
» which is valid, but then, rather than providing a XML node in the request,
you provided a CDATA node which should be used for ComplexData with the
mimeType defined to application/json for instance.<br>
<br>
In the case of mimeType defined to text/xml, the ZOO-Kernel is searching
for a XML node which will be used as a root of a new document which will
then be used to POST the request to the targeted server.<br>
<br>
So your request should work by removing both: «  <![CDATA[ » and
« ]]> » from its content.<br>
<br>
If anybody think that it is wrong to handle the text/xml content the way
ZOO-Project is doing, then please speak up and let me know. <br>
I wonder, cause it is not the first time that somebody send such kind of
requests. The issue Steve faced with his request was really similar to
this one.<br>
<br>
We may fix the issue directly in the Client code maybe ?<br>
<br>
Waiting for your answer,<br>
Best regards,<br>
<br>
<br>
Le 28 juil. 2014 à 16:27, pablo zader <pzader@gmail.com> a écrit
:<br>
<br>
> Hi list,<br>
> I'm developing a client wps modifying the example WPSDemo.js from
<br>
> http://suite.opengeo.org/4.1/processing/wpsclient/index.html .<br>
> I'm using zoo-proyect as wps server.<br>
> I'm trying to invoke the buffer process implemented in GRASS GIS gives
me the following error:<br>
> <br>
> POST http://localhost:9080/proxy/?url=http%3A%2F%2Flocalhost%2Fcgi-bin%2Fzoo_loader.cgi%3F
501 (Not Implemented) <br>
> <br>
> The query POST is:<br>
> <br>
> <wps:Execute xmlns:wps="http://www.opengis.net/wps/1.0.0"
version="1.0.0" service="WPS" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><ows:Identifier
xmlns:ows="http://www.opengis.net/ows/1.1">v_buffer</ows:Identifier><wps:DataInputs><wps:Input><ows:Identifier
xmlns:ows="http://www.opengis.net/ows/1.1">input</ows:Identifier><ows:Title
xmlns:ows="http://www.opengis.net/ows/1.1">Or data source
for direct OGR access</ows:Title><wps:Data><wps:ComplexData
mimeType="text/xml"><![CDATA[<wfs:FeatureCollection
xmlns:wfs="http://www.opengis.net/wfs"><gml:featureMember
xmlns:gml="http://www.opengis.net/gml"><feature:features
xmlns:feature="http://mapserver.gis.umn.edu/mapserver" fid="OpenLayers_Feature_Vector_248"><feature:geometry><gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates
decimal="." cs="," ts=" ">-6383273.5489707,1396657.4552779
-4230806.8327598,26905.908598173 -6246298.3943028,-442723.19312058 -6383273.5489707,1396657.4552779</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></feature:geometry></feature:features></gml:featureMember></wfs:FeatureCollection>]]></wps:ComplexData></wps:Data></wps:Input><wps:Input><ows:Identifier
xmlns:ows="http://www.opengis.net/ows/1.1">layer</ows:Identifier><ows:Title
xmlns:ows="http://www.opengis.net/ows/1.1">A single vector
map can be connected to multiple database tables. This number determines
which table to use. When used with direct OGR access this is the layer
name.</ows:Title><wps:Data><wps:LiteralData/></wps:Data></wps:Input><wps:Input><ows:Identifier
xmlns:ows="http://www.opengis.net/ows/1.1">cats</ows:Identifier><ows:Title
xmlns:ows="http://www.opengis.net/ows/1.1">Example: 1,3,7-9,13</ows:Title><wps:Data><wps:LiteralData/></wps:Data></wps:Input><wps:Input><ows:Identifier
xmlns:ows="http://www.opengis.net/ows/1.1">where</ows:Identifier><ows:Title
xmlns:ows="http://www.opengis.net/ows/1.1">Example: income
 1000 and inhab :: 10000</ows:Title><wps:Data><wps:LiteralData/></wps:Data></wps:Input><wps:Input><ows:Identifier
xmlns:ows="http://www.opengis.net/ows/1.1">type</ows:Identifier><ows:Title
xmlns:ows="http://www.opengis.net/ows/1.1">Feature type</ows:Title><wps:Data><wps:LiteralData/></wps:Data></wps:Input><wps:Input><ows:Identifier
xmlns:ows="http://www.opengis.net/ows/1.1">distance</ows:Identifier><ows:Title
xmlns:ows="http://www.opengis.net/ows/1.1">Buffer distance
along major axis in map units</ows:Title><wps:Data><wps:LiteralData>195678.7923828125</wps:LiteralData></wps:Data></wps:Input><wps:Input><ows:Identifier
xmlns:ows="http://www.opengis.net/ows/1.1">minordistance</ows:Identifier><ows:Title
xmlns:ows="http://www.opengis.net/ows/1.1">Buffer distance
along minor axis in map units</ows:Title><wps:Data><wps:LiteralData/></wps:Data></wps:Input><wps:Input><ows:Identifier
xmlns:ows="http://www.opengis.net/ows/1.1">angle</ows:Identifier><ows:Title
xmlns:ows="http://www.opengis.net/ows/1.1">Angle of major
axis in degrees</ows:Title><wps:Data><wps:LiteralData/></wps:Data></wps:Input><wps:Input><ows:Identifier
xmlns:ows="http://www.opengis.net/ows/1.1">bufcolumn</ows:Identifier><ows:Title
xmlns:ows="http://www.opengis.net/ows/1.1">Name of column
to use for buffer distances</ows:Title><wps:Data><wps:LiteralData/></wps:Data></wps:Input><wps:Input><ows:Identifier
xmlns:ows="http://www.opengis.net/ows/1.1">scale</ows:Identifier><ows:Title
xmlns:ows="http://www.opengis.net/ows/1.1">Scaling factor
for attribute column values</ows:Title><wps:Data><wps:LiteralData/></wps:Data></wps:Input><wps:Input><ows:Identifier
xmlns:ows="http://www.opengis.net/ows/1.1">tolerance</ows:Identifier><ows:Title
xmlns:ows="http://www.opengis.net/ows/1.1">Maximum distance
between theoretical arc and polygon segments as multiple of buffer</ows:Title><wps:Data><wps:LiteralData/></wps:Data></wps:Input><wps:Input><ows:Identifier
xmlns:ows="http://www.opengis.net/ows/1.1">-s</ows:Identifier><ows:Title
xmlns:ows="http://www.opengis.net/ows/1.1">Make outside corners
straight</ows:Title><wps:Data><wps:LiteralData/></wps:Data></wps:Input><wps:Input><ows:Identifier
xmlns:ows="http://www.opengis.net/ows/1.1">-c</ows:Identifier><ows:Title
xmlns:ows="http://www.opengis.net/ows/1.1">Dont make caps
at the ends of polylines</ows:Title><wps:Data><wps:LiteralData/></wps:Data></wps:Input><wps:Input><ows:Identifier
xmlns:ows="http://www.opengis.net/ows/1.1">-t</ows:Identifier><ows:Title
xmlns:ows="http://www.opengis.net/ows/1.1">Transfer categories
and attributes</ows:Title><wps:Data><wps:LiteralData/></wps:Data></wps:Input></wps:DataInputs><wps:ResponseForm><wps:RawDataOutput
mimeType="text/xml"><ows:Identifier xmlns:ows="http://www.opengis.net/ows/1.1">output</ows:Identifier></wps:RawDataOutput></wps:ResponseForm></wps:Execute><br>
> <br>
> Thanks in advanced<br>
> <br>
> P.<br>
> <br>
> _______________________________________________<br>
> Zoo-discuss mailing list<br>
> Zoo-discuss@lists.osgeo.org<br>
> http://lists.osgeo.org/cgi-bin/mailman/listinfo/zoo-discuss<br>
<br>
<br>
<br>
Gérald Fenoy<br>
http://wiki.osgeo.org/wiki/User:Djay<br>
<br>
_______________________________________________<br>
Zoo-discuss mailing list<br>
Zoo-discuss@lists.osgeo.org<br>
http://lists.osgeo.org/cgi-bin/mailman/listinfo/zoo-discuss</font></tt>
<br>
<br>
<br>