[Zoo-discuss] WPS Execute request - the ResponseForm

Fenoy Gerald gerald.fenoy at geolabs.fr
Mon Sep 22 10:16:28 PDT 2014


Dear Alexandre,
thanks for your feedbacks.

You were right, RawDataOutput node should not contain any Output child as defined in wpsExecute_request.xsd schema.

This should be now fixed in the latest source available on the ZOO-Project SVN server.

I hope you can confirm that this new version solve your issue.

Best regards,

Le 15 sept. 2014 à 22:02, Alexandre Dubé <adube at mapgears.com> a écrit :

> Hi list,
> 
>   I'd like to raise this discussion again.
> 
>   I was told that what OpenLayers outputs is fine:
> 
> <wps:ResponseForm>
>   <wps:RawDataOutput>
>     <ows:Identifier xmlns:ows="http://www.opengis.net/ows/1.1">Result</ows:Identifier>
>   </wps:RawDataOutput>
> </wps:ResponseForm>
> 
>   In the above, the mimeType="application/json" is missing.  attribute missing but that can be easily fixed on my side.  It's the missing Output tag that zoo requires that is not there and I want to be sure if it should be there or not.  I.E., I want to know where this should be fixed: in Zoo or OpenLayers.
> 
>   The answer is there, in the schema, but I'm not familiar enough with what its content means. http://schemas.opengis.net/wps/1.0.0/wpsExecute_request.xsd
> 
>   Thoughts ?
> 
> Alexandre
> 
> 
> On 14-08-27 09:14 AM, Alexandre Dubé wrote:
>> Hi list,
>> 
>> In summary
>>   In summary, my question is: Should there be the extra 'Output' node inside the 'RawDataOutput' node ?
>> 
>> Details
>>   I'm trying zoo for the first time.  I'm currently using the server available here: http://zoo-project.org/cgi-bin-new1/zoo_loader.cgi
>> 
>>   Using OpenLayers 2.13.1 WPSClient widget, I'm able to easily build and issue WPS Execute requests.  The XML produced is built by OpenLayers.Format.WPSExecute format, which outputs the following ResponseForm node:
>> 
>> <wps:ResponseForm>
>>   <wps:RawDataOutput>
>>     <ows:Identifier xmlns:ows="http://www.opengis.net/ows/1.1">Result</ows:Identifier>
>>   </wps:RawDataOutput>
>> </wps:ResponseForm>
>> 
>> When using the above with zoo_loader.cgi, it replies an error: 'Wrong RawDataOutput parameter, unable to fetch any result for the name your provided : "unknownIdentifier".'
>> 
>> Looking at the http://www.zoo-project.org/site/ZooWebSite/Demo/SpatialTools example, I notice the following ResponseForm being manually produced:
>> 
>> <wps:ResponseForm>
>>   <wps:RawDataOutput>
>>     <wps:Output mimeType="application/json">
>>       <ows:Identifier>Result</ows:Identifier>
>>     </wps:Output>
>>   </wps:RawDataOutput>
>> </wps:ResponseForm>
>> 
>> So there's an extra Output node there.  I'm currently not sure if it's really supposed to be, but OpenLayers.Format.WPSExecute doesn't produce it.  If we look at the WPSExecute source code here (https://github.com/openlayers/openlayers/blob/master/lib/OpenLayers/Format/WPSExecute.js#L178), we see that it doesn't produce the Output node. Should it be produced ?  
>> 
>> I'm not familiar with schema definitions, so I'm not sure how to read the one for WPS Execute: http://schemas.opengis.net/wps/1.0.0/wpsExecute_request.xsd.  I most certainly tell if the Output node should/must be there.
>> 
>> Any clue ?
>> 
>> -- 
>> Alexandre Dubé
>> T: +1 418-696-5056 #203
>> 
>> http://www.mapgears.com/
>> 
>> 
>> _______________________________________________
>> Zoo-discuss mailing list
>> 
>> Zoo-discuss at lists.osgeo.org
>> http://lists.osgeo.org/cgi-bin/mailman/listinfo/zoo-discuss
> 
> -- 
> Alexandre Dubé
> T: +1 418-696-5056 #203
> 
> http://www.mapgears.com/
> _______________________________________________
> 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.osgeo.org/pipermail/zoo-discuss/attachments/20140922/f36ce7c1/attachment.pgp>


More information about the Zoo-discuss mailing list