<div dir="ltr"><div>Thanks Fenoy,<br><br><span id="result_box" class="" lang="en"><span class="">I did</span> <span class="">the update</span> <span class="">my version</span> <span class="">from the</span> <span class="">trunk</span> <span class="">and now I</span></span> have: revision 496 <br>

The query GET work well!!! The query POST not func.<br><br><span id="result_box" class="" lang="en"><span class="">But now</span> <span class="">I get</span> <span class="">another error</span></span>:<br><br><span style="color:rgb(34,34,34);font-family:'dejavu sans mono',monospace;font-size:11px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:12px;text-align:left;text-indent:0px;text-transform:none;white-space:pre;word-spacing:0px;background-color:rgb(255,255,255);display:inline!important;float:none">"<?xml version="1.0" encoding="UTF-8"?>
<ExceptionReport xmlns="<a href="http://www.opengis.net/ows/1.1">http://www.opengis.net/ows/1.1</a>" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>" xsi:schemaLocation="<a href="http://www.opengis.net/ows/1.1">http://www.opengis.net/ows/1.1</a> <a href="http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd">http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd</a>" xml:lang="en-US" version="1.1.0">
  <Exception exceptionCode="InternalError">
    <ExceptionText>ZOO Kernel failed to process your request receiving signal 11 = SIGSEGV</ExceptionText>
  </Exception>
</ExceptionReport>
"</span><br></div><div><br><span id="result_box" class="" lang="en"><span class="">I</span> <span class="">try</span> <span class="">also through</span> <span class="">the command line and the same error:<br><br>~/shapes/prueba-wps$ curl -H "Content-Type: application/xml" -d@/home/pablo/shapes/prueba-wps/query_v_split.xml "<a href="http://localhost/cgi-bin/zoo_loader.cgi">http://localhost/cgi-bin/zoo_loader.cgi</a>"<br>

<?xml version="1.0" encoding="UTF-8"?><br><ExceptionReport xmlns="<a href="http://www.opengis.net/ows/1.1">http://www.opengis.net/ows/1.1</a>" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>" xsi:schemaLocation="<a href="http://www.opengis.net/ows/1.1">http://www.opengis.net/ows/1.1</a> <a href="http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd">http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd</a>" xml:lang="en-US" version="1.1.0"><br>

  <Exception exceptionCode="InternalError"><br>    <ExceptionText>ZOO Kernel failed to process your request receiving signal 11 = SIGSEGV</ExceptionText><br>  </Exception><br></ExceptionReport><br>

<br></span></span></div><div><span id="result_box" class="" lang="en"><span class="">My main.cfg:<br><br>[main]
<br>encoding=utf-8
<br>isTrial=true
<br>dataPath=/var/www/data
<br>tmpPath=/var/www/tmp
<br>cacheDir=/var/www/cache
<br>rootUrl=/var/www/
<br>version=1.0.0
<br>applicationAddress=<a href="http://127.0.0.1">http://127.0.0.1</a>
<br>msOgcVersion=1.0.0
<br>serverAddress=<a href="http://127.0.0.1/zoo">http://127.0.0.1/zoo</a>
<br>lang=fr-FR,en-US,ja-JP
<br>tmpUrl=../tmp
<br></span></span></div><div><span id="result_box" class="" lang="en"><span class=""><br></span></span><br><span id="result_box" class="" lang="en"><span class="">Could my</span> <span class="">query is</span> <span class="">malformed</span><span class="">? (query EXECUTE </span></span><span id="result_box" class="" lang="en"><span class=""><span id="result_box" class="" lang="en"><span class="">through</span></span> POST)<br>

</span></span><br><span id="result_box" class="" lang="en"><span class="">You can</span> <span class="">provide me</span> <span class="">a zoo</span><span class="">-kernel</span> <span class="">to test</span> <span class="">my query</span> <span class="">POST</span><span>?</span> <span class="">or</span> <span class="">someone could</span> <span class="">try my</span> <span class="">query POST with</span> <span class="">your own installation of</span> <span class="">zoo</span><span class="">-project</span> <span class="">please? Attach the query EXECUTE POST (process v_split).<br>

</span></span><br><span id="result_box" class="" lang="en"><span class="">Other question: <br>Is there</span> <span class="">any resource (tools online, any script, etc.)</span> <span class="">to automatically generate</span> <span class="">queries</span> <span class="">WPS</span> <span class="">POST</span> <span class="">type</span><span class="">?<br>

<br></span></span></div><div><span id="result_box" class="" lang="en"><span class="">Thanks in advanced<br><br></span></span></div><div><span id="result_box" class="" lang="en"><span class="">Pablo<br></span></span></div>

<div><span id="result_box" class="" lang="en"><span class=""><br></span></span><div class="gmail_extra"><br><br><div class="gmail_quote">2014-08-02 12:33 GMT-03:00 Fenoy Gerald <span dir="ltr"><<a href="mailto:gerald.fenoy@geolabs.fr" target="_blank">gerald.fenoy@geolabs.fr</a>></span>:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear Pablo,<br>
I would like to know what is the ZOO-Kernel version you are currently using ?<br>
Indeed it sounds strange that switching from GET to POST change so much thing. In other case, this have to be review and fixed asap.<br>
So, I would like to invite you to build the ZOO-Kernel from the SVN trunk source tree and try the same requests against this version and report any issue if you have still one.<br>
<br>
I hope to hear back from you,<br>
<br>
Best regards,<br>
<br>
Le 30 juil. 2014 à 18:24, pablo zader <<a href="mailto:pzader@gmail.com">pzader@gmail.com</a>> a écrit :<br>
<br>
> Thanks Fenoy<br>
><br>
> I am now using as input appliaction/xml instead of text/xml and it works!! (through POST . attach in this mail). But I have another error (attach the log file zoo_proyect):<br>
><br>
> TRACE : GDLA error while import. Unable to create input location from input /tmp/tmphfAPH3/input_0 GDAL log: ERROR: Unable to open data source </tmp/tmphfAPH3/input_0><class 'gms.ErrorHandler.GMSError'>Unable to run your python process properly. Please check the following messages : [' File "/usr/lib/cgi-bin/v_buffer.py", line 7, in v_buffer\n service.fromMaps("v.buffer", inputs, outputs)\n', ' File "/usr/lib/cgi-bin/ZOOGrassModuleStarter.py", line 77, in fromMaps\n self._importData()\n', ' File "/usr/lib/cgi-bin/gms/GrassModuleStarter.py", line 469, in _importData\n self._createInputLocation(input)\n', ' File "/usr/lib/cgi-bin/gms/GrassModuleStarter.py", line 568, in _createInputLocation\n raise GMSError(log)\n']<br>


><br>
> But making a GET request works well:<br>
><br>
> <a href="http://localhost/cgi-bin/zoo_loader.cgi?request=Execute&service=WPS&version=1.0.0&Identifier=v_buffer&DataInputs=input=Reference@xlink:href=http%3A%2F%2Flocalhost%2Fcgi-bin%2Fmapserv%3Fmap%3D%2Fvar%2Fwww%2Fmapfile%2Fwfs.map%26SERVICE%3DWFS%26REQUEST%3DGetFeature%26VERSION%3D1.0.0%26typename%3Dfeature%3Acontinent%26SRS%3DEPSG%3A4326%26FeatureID%3Dcontinent.1;distance=10&RawDataOutput=output@mimeType=application/xml" target="_blank">http://localhost/cgi-bin/zoo_loader.cgi?request=Execute&service=WPS&version=1.0.0&Identifier=v_buffer&DataInputs=input=Reference@xlink:href=http%3A%2F%2Flocalhost%2Fcgi-bin%2Fmapserv%3Fmap%3D%2Fvar%2Fwww%2Fmapfile%2Fwfs.map%26SERVICE%3DWFS%26REQUEST%3DGetFeature%26VERSION%3D1.0.0%26typename%3Dfeature%3Acontinent%26SRS%3DEPSG%3A4326%26FeatureID%3Dcontinent.1;distance=10&RawDataOutput=output@mimeType=application/xml</a><br>


><br>
> Another test was made ​​using cURL where the file demo1.xml  containing the above information request POST:<br>
><br>
> curl -H "Content-Type: application/xml" -d@/home/pablo/Descargas/demo1.xml "<a href="http://localhost/cgi-bin/zoo_loader.cgi" target="_blank">http://localhost/cgi-bin/zoo_loader.cgi</a>"<br>
><br>
> <?xml version="1.0" encoding="utf-8"?><br>
> <ExceptionReport xmlns="<a href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a>" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>" xsi:schemaLocation="<a href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a> <a href="http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd" target="_blank">http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd</a>" xml:lang="en-US" version="1.1.0"><br>


>   <Exception exceptionCode="NoApplicableCode"><br>
>     <ExceptionText>TRACE : GDLA error while import. Unable to create input location from input /tmp/tmpitl1aH/input_0 GDAL log: ERROR: Unable to open data source &lt;/tmp/tmpitl1aH/input_0&gt;<br>
><br>
> &lt;class 'gms.ErrorHandler.GMSError'&gt;<br>
> Unable to run your python process properly. Please check the following messages : ['  File "/usr/lib/cgi-bin/v_buffer.py", line 7, in v_buffer\n    service.fromMaps("v.buffer", inputs, outputs)\n', '  File "/usr/lib/cgi-bin/ZOOGrassModuleStarter.py", line 77, in fromMaps\n    self._importData()\n', '  File "/usr/lib/cgi-bin/gms/GrassModuleStarter.py", line 469, in _importData\n    self._createInputLocation(input)\n', '  File "/usr/lib/cgi-bin/gms/GrassModuleStarter.py", line 568, in _createInputLocation\n    raise GMSError(log)\n']</ExceptionText><br>


>   </Exception><br>
> </ExceptionReport><br>
><br>
> Note:<br>
> The get request was made on a vector taken with WFS<br>
> The POST request is on a user-selected feature from the map.<br>
><br>
><br>
> Thanks in advanced<br>
><br>
> Pablo<br>
><br>
><br>
><br>
> 2014-07-28 12:17 GMT-03:00 Fenoy Gerald <<a href="mailto:gerald.fenoy@geolabs.fr">gerald.fenoy@geolabs.fr</a>>:<br>
> 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 <<a href="mailto:pzader@gmail.com">pzader@gmail.com</a>> a écrit :<br>
><br>
> > Hi list,<br>
> > I'm developing a client wps modifying the example WPSDemo.js from<br>
> > <a href="http://suite.opengeo.org/4.1/processing/wpsclient/index.html" target="_blank">http://suite.opengeo.org/4.1/processing/wpsclient/index.html</a> .<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 <a href="http://localhost:9080/proxy/?url=http%3A%2F%2Flocalhost%2Fcgi-bin%2Fzoo_loader.cgi%3F" target="_blank">http://localhost:9080/proxy/?url=http%3A%2F%2Flocalhost%2Fcgi-bin%2Fzoo_loader.cgi%3F</a> 501 (Not Implemented)<br>


> ><br>
> > The query POST is:<br>
> ><br>
> > <wps:Execute xmlns:wps="<a href="http://www.opengis.net/wps/1.0.0" target="_blank">http://www.opengis.net/wps/1.0.0</a>" version="1.0.0" service="WPS" xsi:schemaLocation="<a href="http://www.opengis.net/wps/1.0.0" target="_blank">http://www.opengis.net/wps/1.0.0</a> <a href="http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd" target="_blank">http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd</a>" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>"><ows:Identifier xmlns:ows="<a href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a>">v_buffer</ows:Identifier><wps:DataInputs><wps:Input><ows:Identifier xmlns:ows="<a href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a>">input</ows:Identifier><ows:Title xmlns:ows="<a href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a>">Or data source for direct OGR access</ows:Title><wps:Data><wps:ComplexData mimeType="text/xml"><![CDATA[<wfs:FeatureCollection xmlns:wfs="<a href="http://www.opengis.net/wfs" target="_blank">http://www.opengis.net/wfs</a>"><gml:featureMember xmlns:gml="<a href="http://www.opengis.net/gml" target="_blank">http://www.opengis.net/gml</a>"><feature:features xmlns:feature="<a href="http://mapserver.gis.umn.edu/mapserver" target="_blank">http://mapserver.gis.umn.edu/mapserver</a>" 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="<a href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a>">layer</ows:Identifier><ows:Title xmlns:ows="<a href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a>">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="<a href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a>">cats</ows:Identifier><ows:Title xmlns:ows="<a href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a>">Example: 1,3,7-9,13</ows:Title><wps:Data><wps:LiteralData/></wps:Data></wps:Input><wps:Input><ows:Identifier xmlns:ows="<a href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a>">where</ows:Identifier><ows:Title xmlns:ows="<a href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a>">Example: income  1000 and inhab :: 10000</ows:Title><wps:Data><wps:LiteralData/></wps:Data></wps:Input><wps:Input><ows:Identifier xmlns:ows="<a href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a>">type</ows:Identifier><ows:Title xmlns:ows="<a href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a>">Feature type</ows:Title><wps:Data><wps:LiteralData/></wps:Data></wps:Input><wps:Input><ows:Identifier xmlns:ows="<a href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a>">distance</ows:Identifier><ows:Title xmlns:ows="<a href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a>">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="<a href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a>">minordistance</ows:Identifier><ows:Title xmlns:ows="<a href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a>">Buffer distance along minor axis in map units</ows:Title><wps:Data><wps:LiteralData/></wps:Data></wps:Input><wps:Input><ows:Identifier xmlns:ows="<a href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a>">angle</ows:Identifier><ows:Title xmlns:ows="<a href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a>">Angle of major axis in degrees</ows:Title><wps:Data><wps:LiteralData/></wps:Data></wps:Input><wps:Input><ows:Identifier xmlns:ows="<a href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a>">bufcolumn</ows:Identifier><ows:Title xmlns:ows="<a href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a>">Name of column to use for buffer distances</ows:Title><wps:Data><wps:LiteralData/></wps:Data></wps:Input><wps:Input><ows:Identifier xmlns:ows="<a href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a>">scale</ows:Identifier><ows:Title xmlns:ows="<a href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a>">Scaling factor for attribute column values</ows:Title><wps:Data><wps:LiteralData/></wps:Data></wps:Input><wps:Input><ows:Identifier xmlns:ows="<a href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a>">tolerance</ows:Identifier><ows:Title xmlns:ows="<a href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a>">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="<a href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a>">-s</ows:Identifier><ows:Title xmlns:ows="<a href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a>">Make outside corners straight</ows:Title><wps:Data><wps:LiteralData/></wps:Data></wps:Input><wps:Input><ows:Identifier xmlns:ows="<a href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a>">-c</ows:Identifier><ows:Title xmlns:ows="<a href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a>">Dont make caps at the ends of polylines</ows:Title><wps:Data><wps:LiteralData/></wps:Data></wps:Input><wps:Input><ows:Identifier xmlns:ows="<a href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a>">-t</ows:Identifier><ows:Title xmlns:ows="<a href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a>">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="<a href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a>">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>
> > <a href="mailto:Zoo-discuss@lists.osgeo.org">Zoo-discuss@lists.osgeo.org</a><br>
> > <a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/zoo-discuss" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/zoo-discuss</a><br>
><br>
><br>
><br>
> Gérald Fenoy<br>
> <a href="http://wiki.osgeo.org/wiki/User:Djay" target="_blank">http://wiki.osgeo.org/wiki/User:Djay</a><br>
><br>
><br>
><br>
><br>
> --<br>
> Pablo J. Zader<br>
> Lic. en Cs. de la Computación<br>
> CONAE<br>
> <a href="mailto:pablo.zader@gmail.com">pablo.zader@gmail.com</a><br>
><br>
> "Los Grandes Hombres hablan sobre ideas...<br>
>  Los Hombres Promedio hablan sobre cosas...<br>
>  Los Hombres Pequeños hablan.. de otros Hombres.<br>
><br>
> del libro Matemática estas ahi? A. Paenza "<br>
> <log_zoo.txt><demo1.xml><br>
<br>
<br>
<br>
Gérald Fenoy<br>
<a href="http://wiki.osgeo.org/wiki/User:Djay" target="_blank">http://wiki.osgeo.org/wiki/User:Djay</a><br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><div><b><font color="#3366ff"><i>Pablo J. Zader</i></font></b></div><div><b><font color="#3366ff"><i>Lic. en Cs. de la Computación</i></font></b></div><div>

<font color="#3366ff"><b><i>CONAE </i></b></font></div><font color="#3366ff"><i><b><a href="mailto:pablo.zader@gmail.com" target="_blank">pablo.zader@gmail.com</a></b><br></i></font><div><b><i><font size="1"><br></font></i></b></div>

<div><b><i><font size="1">"Los Grandes Hombres hablan sobre ideas...<br> Los Hombres Promedio hablan sobre cosas...<br> Los Hombres Pequeños hablan.. de otros Hombres.<br><br></font></i></b><div><b><i><font size="1">del libro Matemática estas ahi? A. Paenza "</font></i></b></div>

</div></div>
</div></div></div>