[Zoo-discuss] Problems with service
Luca Delucchi
lucadeluge at gmail.com
Tue Jul 28 00:38:23 PDT 2015
Hi ZOO tribe,
I have problems with this service [0], If I try to run it from command
line using the following xml POST request
<wps:Execute service="WPS" version="1.0.0"
xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 ../wpsExecute_request.xsd">
<ows:Identifier>geopaposm</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>inputvector</ows:Identifier>
<wps:Data>
<wps:ComplexData mimeType="application/json"><![CDATA[[
{"sectionname":"osm","sectiondescription":"osm
accomodation","forms":[{"formname":"","formitems":[{"key":"tourism","value":"alpine_hut","type":"primary_key"},{"key":"name","value":"Testa","type":"string"},{"key":"operator","value":"","type":"string"},{"key":"star","value":"5","values":{"items":[{"item":""},{"item":"1"},{"item":"2"},{"item":"3"},{"item":"4"},{"item":"5"},{"item":"6"},{"item":"7"}]},"type":"stringcombo"},{"key":"internet_access","value":"","values":{"items":[{"item":""},{"item":"yes"},{"item":"wlan"},{"item":"wired"},{"item":"terminal"},{"item":"no"}]},"type":"stringcombo"},{"key":"internet_access:fee","value":"","values":{"items":[{"item":""},{"item":"yes"},{"item":"no"}]},"type":"stringcombo"},{"key":"wheelchair","value":"","values":{"items":[{"item":""},{"item":"yes"},{"item":"limited"},{"item":"no"}]},"type":"stringcombo"},{"key":"website","value":"","type":"string"},{"key":"email","value":"","type":"string"},{"key":"phone","value":"","type":"string"},{"key":"fax","value":"","type":"string"},{"key":"LONGITUDE","value":12.863615,"type":"hidden"},{"key":"LATITUDE","value":41.088312,"type":"hidden"}]}],"longname":"alpine_hut"}]]]></wps:ComplexData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>username</ows:Identifier>
<wps:Data>
<wps:LiteralData><![CDATA[test]]></wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>password</ows:Identifier>
<wps:Data>
<wps:LiteralData><![CDATA[test]]></wps:LiteralData>
</wps:Data>
</wps:Input>
<wps:Input>
<ows:Identifier>changeset</ows:Identifier>
<wps:Data>
<wps:LiteralData><![CDATA[rffff]]></wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput>
<wps:Output>
<ows:Identifier>result</ows:Identifier>
</wps:Output>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
I got this error
Content-Type: text/xml; charset=utf-8
Status: 400 Bad request
<?xml version="1.0" encoding="utf-8"?>
<ows:ExceptionReport xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/ows/1.1
http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd"
xml:lang="en-US" version="1.1.0">
<ows:Exception exceptionCode="InvalidParameterValue"
locator="unknownIdentifier">
<ows:ExceptionText>The <unknownIdentifier> argument
specified as RawDataOutput identifier was not recognized (not defined
in the ZOO Configuration File).</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>
If I change RawDataOutput in ResponseDocument it is running but I got
a strange value for the inputvector value
[
{"sectionname":"osm","sectiondescription":"osm
accomodation","forms":[{"formname":"","formitems":[{"key":"tourism","value":"alpine_hut","type":"primary_key"},{"key":"name","value":"Testa","type":"string"},{"key":"operator","value":"","type":"string"},{"key":"star","value":"5","values":{"items":[{"item":""},{"item":"1"},{"item":"2"},{"item":"3"},{"item":"4"},{"item":"5"},{"item":"6"},{"item":"7"}]},"type":"stringcombo"},{"key":"internet_access","value":"","values":{"items":[{"item":""},{"item":"yes"},{"item":"wlan"},{"item":"wired"},{"item":"terminal"},{"item":"no"}]},"type":"stringcombo"},{"key":"internet_access:fee","value":"","values":{"items":[{"item":""},{"item":"yes"},{"item":"no"}]},"type":"stringcombo"},{"key":"wheelchair","value":"","values":{"items":[{"item":""},{"item":"yes"},{"item":"limited"},{"item":"no"}]},"type":"stringcombo"},{"key":"website","value":"","type":"string"},{"key":"email","value":"","type":"string"},{"key":"phone","value":"","type":"string"},{"key":"fax","value":"","type":"string"},{"key":"LONGITUDE","value":12.863615,"type":"hidden"},{"key":"LATITUDE","value":41.088312,"type":"hidden"}]}],"longname":"alpine_hut"}]Content-Type:
text/xml; charset=utf-8
I think "Content-Type: text/xml; charset=utf-8" should not be there.
How can I fix this output?
The source code of the service is here [1]
[0] http://lucadelu.org/cgi-bin/zoo_loader_new.cgi?request=describeprocess&service=WPS&identifier=zoosmarazzi&version=1.0.0
[1] https://github.com/geopaparazzi/geopaparazzi-osm/blob/master/zoosmarazzi/zoosmarazzi.py
--
ciao
Luca
http://gis.cri.fmach.it/delucchi/
www.lucadelu.org
More information about the Zoo-discuss
mailing list