[Zoo-discuss] request and service MissingParameterValue error

Adrien ANDRÉ adr.andre at laposte.net
Tue Oct 20 03:43:40 PDT 2015


I found the clue in apache access logs:

"GET /cgi-bin/wps/call/GetStatus/b2e197fa-7716-11e5-92c7-928d4e8d96f5 
HTTP/1.1" 400 922 "-" "Mozilla/5.0 QGIS/2.8.1-Wien"

yes, no parameters here...


Le 20/10/2015 09:53, Adrien ANDRÉ 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é


More information about the Zoo-discuss mailing list