[Zoo-discuss] Zoo-discuss Digest, Vol 17, Issue 1

Lauren lllhhh0502 at gmail.com
Wed Nov 6 03:07:48 PST 2013


Hi Gerald

Thank you for your response.  Here is the xml:
xml = """
 <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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="
http://w3.org/1999/xlink" xsi:schemaLocation="
http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsExecute_request.xsd">
 <ows:Identifier>Parser</ows:Identifier>
<wps:DataInputs>
 <wps:Input>
<ows:Identifier>stringinput</ows:Identifier>
 <wps:Data>
<wps:LiteralData>%s</wps:LiteralData>
 </wps:Data>
</wps:Input>
 </wps:DataInputs>
<wps:ResponseForm>
 <wps:ResponseDocument>
<wps:Output>
<ows:Identifier>stringoutput</ows:Identifier>
 </wps:Output>
</wps:ResponseDocument>
 </wps:ResponseForm>
</wps:Execute>
""" % (line)

Kind regards,
Lauren


On Tue, Nov 5, 2013 at 10:00 PM, <zoo-discuss-request at lists.osgeo.org>wrote:

> Send Zoo-discuss mailing list submissions to
>         zoo-discuss at lists.osgeo.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.osgeo.org/cgi-bin/mailman/listinfo/zoo-discuss
> or, via email, send a message with subject or body 'help' to
>         zoo-discuss-request at lists.osgeo.org
>
> You can reach the person managing the list at
>         zoo-discuss-owner at lists.osgeo.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Zoo-discuss digest..."
>
>
> Today's Topics:
>
>    1. Zoo WPS and urllib (Lauren)
>    2. Re: Zoo WPS and urllib (Fenoy Gerald)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 5 Nov 2013 10:15:18 +0200
> From: Lauren <lllhhh0502 at gmail.com>
> To: zoo-discuss at lists.osgeo.org
> Subject: [Zoo-discuss] Zoo WPS and urllib
> Message-ID:
>         <CA+k-3OGtvy53a=
> 2wH0TygVQg6Jf-Wvsy53x_75yx9a6AdOLMSA at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi
>
> I have tried to POST a XML execute request with urllib in Python.  Here is
> a sample of the code:
> url = "http://localhost/cgi-bin/zoo_loader.cgi"
> req = urllib2.Request(url=url, data=xml, headers={'Content-Type':
> 'text/xml'})
>
> After the Python script was executed, the output returned the following:
>  <ows:Exception exceptionCode="MissingParameterValue">
>     <ows:ExceptionText>Parameter <request> was not
> specified</ows:ExceptionText>
>   </ows:Exception>
>
> The XML worked with another WPS that I have used, all of the parameters
> were specified in the XML request.  Could you please help?
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.osgeo.org/pipermail/zoo-discuss/attachments/20131105/74c623dc/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 2
> Date: Tue, 5 Nov 2013 14:20:10 +0100
> From: Fenoy Gerald <gerald.fenoy at geolabs.fr>
> To: ZOO-discuss <zoo-discuss at lists.osgeo.org>
> Subject: Re: [Zoo-discuss] Zoo WPS and urllib
> Message-ID: <572ABCF9-1207-4BA7-959E-0E9749F3E618 at geolabs.fr>
> Content-Type: text/plain; charset="windows-1252"
>
> Hi Lauren,
> sorry for late reply.
>
> It is strange that the request was not recognized by the ZOO-Kernel as it
> should be.
> Can you please provide the XML request you gave (should be named xml in
> your source code) ?
>
> I?m pretty sure that the issue come from the XML provided.
>
> Hope you can give more details soon,
> Best regards,
>
> G?rald Fenoy
> gerald.fenoy at geolabs.fr
>
>
>
> Le 5 nov. 2013 ? 09:15, Lauren <lllhhh0502 at gmail.com> a ?crit :
>
> > Hi
> >
> > I have tried to POST a XML execute request with urllib in Python.  Here
> is a sample of the code:
> > url = "http://localhost/cgi-bin/zoo_loader.cgi"
> > req = urllib2.Request(url=url, data=xml, headers={'Content-Type':
> 'text/xml'})
> >
> > After the Python script was executed, the output returned the following:
> >  <ows:Exception exceptionCode="MissingParameterValue">
> >     <ows:ExceptionText>Parameter <request> was not
> specified</ows:ExceptionText>
> >   </ows:Exception>
> >
> > The XML worked with another WPS that I have used, all of the parameters
> were specified in the XML request.  Could you please help?
> >
> > _______________________________________________
> > Zoo-discuss mailing list
> > Zoo-discuss at lists.osgeo.org
> > http://lists.osgeo.org/cgi-bin/mailman/listinfo/zoo-discuss
>
> -------------- 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/20131105/15a67898/attachment-0001.pgp
> >
>
> ------------------------------
>
> _______________________________________________
> Zoo-discuss mailing list
> Zoo-discuss at lists.osgeo.org
> http://lists.osgeo.org/cgi-bin/mailman/listinfo/zoo-discuss
>
> End of Zoo-discuss Digest, Vol 17, Issue 1
> ******************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/zoo-discuss/attachments/20131106/be34a0f2/attachment.html>


More information about the Zoo-discuss mailing list