[Zoo-discuss] Problems with service
Fenoy Gerald
gerald.fenoy at geolabs.fr
Tue Jul 28 05:58:54 PDT 2015
Hi Luca,
sorry I did not take attention of the second issue you mentioned.
Nevertheless, I give it a short try. Not directly by using your service code but by using a simpler one, just to see if something strange happened.
So, I’ve used the test_service.py from hello-py zoo-services directory and added a simple geopaposm service which looks exactly like the following:
def geopaposm(conf,inputs,outputs):
outputs["result"]["value"]=inputs["inputvector"]["value"]
return zoo.SERVICE_SUCCEEDED
(Luca, you should be able to use the same zcfg file than the one you used before.)
So, I requested using your request (which corresponds to the file attached to this email) and did not notice anything wrong and I didn’t notice any text/xml at the end of the input vector value.
Can you please try with the same service and confirm that you don’t face the same issue ?
In case you have the same issue, then I will probably ask for the version of ZOO-Kernel you are using. But I suppose that you are using the 1.5.0 version, in other case please try this one.
I hope to hear back from you and we can find a solution to this issue.
Best regards,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lucaRequest.xml
Type: application/xml
Size: 2280 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/zoo-discuss/attachments/20150728/eaa9a9f6/attachment.xml>
-------------- next part --------------
> Le 28 juil. 2015 à 12:09, Luca Delucchi <lucadeluge at gmail.com> a écrit :
>
> On 28 July 2015 at 12:47, Fenoy Gerald <gerald.fenoy at geolabs.fr> wrote:
>> Hi Luca,
>
> Hi gerald,
>
>> thanks a lot for your feedbacks.
>>
>
> thanks a lot for the answer
>
>> Despite the previous ZOO-Kernel supported this kind of POST request, the request is not valid relatively to the OGC schemas [1].
>>
>> Indeed, as you can see in the wpsExecute_request.xsd file, if the ResponseFormType is RawDataOutput then we should use an OutputDefinitionType.
>>
>> So for your specific request, if you remove both the <wps:Output> and </wps:Output>, it should work correctly and find the Output Identifier you required.
>>
>> I hope this will solve your issue,
>
> yes this is solving the first issue, but I have another one, in
> inputs["inputvector"]["value"] I got the value but also "Content-Type:
> text/xml; charset=utf-8" is this normal? I don't pass it to the
> service and I don't need it, instead it return an error when I try to
> parse the string as JSON.
>
>
>> Best regards,
>>
>
> --
> ciao
> Luca
>
> http://gis.cri.fmach.it/delucchi/
> www.lucadelu.org
> _______________________________________________
> Zoo-discuss mailing list
> Zoo-discuss at lists.osgeo.org
> http://lists.osgeo.org/cgi-bin/mailman/listinfo/zoo-discuss
Gérald Fenoy
http://wiki.osgeo.org/wiki/User:Djay
More information about the Zoo-discuss
mailing list