[Zoo-discuss] request and service MissingParameterValue error
Fenoy Gerald
gerald.fenoy at geolabs.fr
Thu Nov 5 05:30:07 PST 2015
Hello Adrien,
sorry, I did not answer to this mail.
To be frank I do not see anything wrong, you should see your « Raster service start. » sentence displayed when requesting the ZOO-Kernel from the QgsWPSClient QGIS plugin you’ve installed.
I don’t see anything wrong in your zcfg file (except maybe the empty lines) but I guess that you received the list of services from the QgsWPSClient plugin ? if yes, then it means that there is no problem with your zcfg as it was successfully parsed by the ZOO-Kernel to answer the GetCapabilities request. If your form was successfully generated by the plugin it means that the DescribeProcess succeed also. So everything should be fine on this side.
Another thing, but you should be able to do so, is that everything is called raster in your case, both the py module, so you should have a raster.py file in the same same directory that for your zcfg file, and also the function name. I have to admit that I never have such kind of situation and I have always used different function and module name.
Side-note: using the service you created you should be able to publish automatically from Mapserver as WCS. Please refer to this documentation page for more informations on this topic.
I hope to hear back from you to know if it was finally successfully working or not.
Best regards
> Le 20 oct. 2015 à 09:53, Adrien ANDRÉ <adr.andre at laposte.net> a écrit :
>
> Dear list,
>
> after zoo-kernel and Status Service installation,
> writing a simple Python service with the following configuration:
>
>
> [raster]
> Title = Raster test.
> Abstract = Test service returning input raster.
> processVersion = 1
> storeSupported = true
> statusSupported = true
> serviceType = Python
> serviceProvider = raster
>
> <DataInputs>
> [inimage]
> Title = Input Image
> Abstract = Input image as a GeoTIFF file
> minOccurs = 1
> maxOccurs = 1
>
> <ComplexData>
> <Default>
> mimeType = image/tiff
> </Default>
> </ComplexData>
> </DataInputs>
>
> <DataOutputs>
> [outimage]
> Title = Output raster
> Abstract = Input raster copy
>
> <ComplexData>
> <Default>
> mimeType = image/tiff
> </Default>
> </ComplexData>
> </DataOutputs>
>
>
> and code:
>
>
> import zoo
>
>
> def raster(conf, inputs, outputs):
>
> import sys
>
> sys.stderr.write("Raster service start.")
>
> srcRasterFileName = inputs['inimage']['value']
>
> outputs["outimage"]["value"] = srcRasterFileName
>
> sys.stderr.write("Raster service end.")
>
> return zoo.SERVICE_SUCCEEDED
>
>
> when providing a sample raster file with QGIS WPS Plugin, i get this error:
>
>
> <?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="fr-FR" version="1.1.0">
> <ows:Exception exceptionCode="MissingParameterValue" locator="request">
> <ows:ExceptionText>Mandatory parameter <request> was not specified</ows:ExceptionText>
> </ows:Exception>
> <ows:Exception exceptionCode="MissingParameter" locator="service">
> <ows:ExceptionText>Mandatory parameter <service> was not specified</ows:ExceptionText>
> </ows:Exception>
> </ows:ExceptionReport>
>
>
> while Apache logs remain empty.
>
> I guess i missed something. Would you know where this comes from?
>
>
> Thanking you in advance,
>
> regards,
>
> Adrien André
> _______________________________________________
> Zoo-discuss mailing list
> Zoo-discuss at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/zoo-discuss
Gérald Fenoy
http://wiki.osgeo.org/wiki/User:Djay
More information about the Zoo-discuss
mailing list