<div dir="ltr"><div class="gmail_default" style="font-family:garamond,serif">Hi Gerald</div><div class="gmail_default" style="font-family:garamond,serif"><br></div><div class="gmail_default" style="font-family:garamond,serif">
Thank you for your response. Here is the xml:</div><div class="gmail_default"><div class="gmail_default"><div class="gmail_default"><span style="white-space:pre-wrap"> </span>xml = """</div><div class="gmail_default">
<span style="white-space:pre-wrap"> </span><wps:Execute service="WPS" version="1.0.0" xmlns:wps="<a href="http://www.opengis.net/wps/1.0.0" target="_blank">http://www.opengis.net/wps/1.0.0</a>" xmlns:ows="<a href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a>" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>" xmlns:xlink="<a href="http://w3.org/1999/xlink" target="_blank">http://w3.org/1999/xlink</a>" xsi:schemaLocation="<a href="http://www.opengis.net/wps/1.0.0" target="_blank">http://www.opengis.net/wps/1.0.0</a> <a href="http://schemas.opengis.net/wps/1.0.0/wpsExecute_request.xsd" target="_blank">http://schemas.opengis.net/wps/1.0.0/wpsExecute_request.xsd</a>"></div>
<div class="gmail_default"><span style="white-space:pre-wrap"> </span><ows:Identifier>Parser</ows:Identifier></div><div class="gmail_default"><span style="white-space:pre-wrap"> </span><wps:DataInputs></div>
<div class="gmail_default"><span style="white-space:pre-wrap"> </span><wps:Input></div><div class="gmail_default"><span style="white-space:pre-wrap"> </span><ows:Identifier>stringinput</ows:Identifier></div>
<div class="gmail_default"><span style="white-space:pre-wrap"> </span><wps:Data></div><div class="gmail_default"><span style="white-space:pre-wrap"> </span><wps:LiteralData>%s</wps:LiteralData></div>
<div class="gmail_default"><span style="white-space:pre-wrap"> </span></wps:Data><span style="white-space:pre-wrap"> </span></div><div class="gmail_default"><span style="white-space:pre-wrap"> </span></wps:Input></div>
<div class="gmail_default"><span style="white-space:pre-wrap"> </span></wps:DataInputs></div><div class="gmail_default"><span style="white-space:pre-wrap"> </span><wps:ResponseForm></div><div class="gmail_default">
<span style="white-space:pre-wrap"> </span><wps:ResponseDocument></div><div class="gmail_default"><span style="white-space:pre-wrap"> </span><wps:Output></div><div class="gmail_default"><span style="white-space:pre-wrap"> </span><ows:Identifier>stringoutput</ows:Identifier></div>
<div class="gmail_default"><span style="white-space:pre-wrap"> </span></wps:Output></div><div class="gmail_default"><span style="white-space:pre-wrap"> </span></wps:ResponseDocument></div><div class="gmail_default">
<span style="white-space:pre-wrap"> </span></wps:ResponseForm></div><div class="gmail_default"><span style="white-space:pre-wrap"> </span></wps:Execute></div><div class="gmail_default"><span style="white-space:pre-wrap"> </span>""" % (line)</div>
<div class="gmail_default"><br></div><div class="gmail_default">Kind regards,</div><div class="gmail_default">Lauren</div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Nov 5, 2013 at 10:00 PM, <span dir="ltr"><<a href="mailto:zoo-discuss-request@lists.osgeo.org" target="_blank">zoo-discuss-request@lists.osgeo.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send Zoo-discuss mailing list submissions to<br>
<a href="mailto:zoo-discuss@lists.osgeo.org">zoo-discuss@lists.osgeo.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/zoo-discuss" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/zoo-discuss</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:zoo-discuss-request@lists.osgeo.org">zoo-discuss-request@lists.osgeo.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:zoo-discuss-owner@lists.osgeo.org">zoo-discuss-owner@lists.osgeo.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Zoo-discuss digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Zoo WPS and urllib (Lauren)<br>
2. Re: Zoo WPS and urllib (Fenoy Gerald)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Tue, 5 Nov 2013 10:15:18 +0200<br>
From: Lauren <<a href="mailto:lllhhh0502@gmail.com">lllhhh0502@gmail.com</a>><br>
To: <a href="mailto:zoo-discuss@lists.osgeo.org">zoo-discuss@lists.osgeo.org</a><br>
Subject: [Zoo-discuss] Zoo WPS and urllib<br>
Message-ID:<br>
<CA+k-3OGtvy53a=<a href="mailto:2wH0TygVQg6Jf-Wvsy53x_75yx9a6AdOLMSA@mail.gmail.com">2wH0TygVQg6Jf-Wvsy53x_75yx9a6AdOLMSA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hi<br>
<br>
I have tried to POST a XML execute request with urllib in Python. Here is<br>
a sample of the code:<br>
url = "<a href="http://localhost/cgi-bin/zoo_loader.cgi" target="_blank">http://localhost/cgi-bin/zoo_loader.cgi</a>"<br>
req = urllib2.Request(url=url, data=xml, headers={'Content-Type':<br>
'text/xml'})<br>
<br>
After the Python script was executed, the output returned the following:<br>
<ows:Exception exceptionCode="MissingParameterValue"><br>
<ows:ExceptionText>Parameter <request> was not<br>
specified</ows:ExceptionText><br>
</ows:Exception><br>
<br>
The XML worked with another WPS that I have used, all of the parameters<br>
were specified in the XML request. Could you please help?<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.osgeo.org/pipermail/zoo-discuss/attachments/20131105/74c623dc/attachment-0001.html" target="_blank">http://lists.osgeo.org/pipermail/zoo-discuss/attachments/20131105/74c623dc/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Tue, 5 Nov 2013 14:20:10 +0100<br>
From: Fenoy Gerald <<a href="mailto:gerald.fenoy@geolabs.fr">gerald.fenoy@geolabs.fr</a>><br>
To: ZOO-discuss <<a href="mailto:zoo-discuss@lists.osgeo.org">zoo-discuss@lists.osgeo.org</a>><br>
Subject: Re: [Zoo-discuss] Zoo WPS and urllib<br>
Message-ID: <<a href="mailto:572ABCF9-1207-4BA7-959E-0E9749F3E618@geolabs.fr">572ABCF9-1207-4BA7-959E-0E9749F3E618@geolabs.fr</a>><br>
Content-Type: text/plain; charset="windows-1252"<br>
<br>
Hi Lauren,<br>
sorry for late reply.<br>
<br>
It is strange that the request was not recognized by the ZOO-Kernel as it should be.<br>
Can you please provide the XML request you gave (should be named xml in your source code) ?<br>
<br>
I?m pretty sure that the issue come from the XML provided.<br>
<br>
Hope you can give more details soon,<br>
Best regards,<br>
<br>
G?rald Fenoy<br>
<a href="mailto:gerald.fenoy@geolabs.fr">gerald.fenoy@geolabs.fr</a><br>
<br>
<br>
<br>
Le 5 nov. 2013 ? 09:15, Lauren <<a href="mailto:lllhhh0502@gmail.com">lllhhh0502@gmail.com</a>> a ?crit :<br>
<br>
> Hi<br>
><br>
> I have tried to POST a XML execute request with urllib in Python. Here is a sample of the code:<br>
> url = "<a href="http://localhost/cgi-bin/zoo_loader.cgi" target="_blank">http://localhost/cgi-bin/zoo_loader.cgi</a>"<br>
> req = urllib2.Request(url=url, data=xml, headers={'Content-Type': 'text/xml'})<br>
><br>
> After the Python script was executed, the output returned the following:<br>
> <ows:Exception exceptionCode="MissingParameterValue"><br>
> <ows:ExceptionText>Parameter <request> was not specified</ows:ExceptionText><br>
> </ows:Exception><br>
><br>
> The XML worked with another WPS that I have used, all of the parameters were specified in the XML request. Could you please help?<br>
><br>
> _______________________________________________<br>
> Zoo-discuss mailing list<br>
> <a href="mailto:Zoo-discuss@lists.osgeo.org">Zoo-discuss@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/zoo-discuss" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/zoo-discuss</a><br>
<br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: signature.asc<br>
Type: application/pgp-signature<br>
Size: 204 bytes<br>
Desc: Message signed with OpenPGP using GPGMail<br>
URL: <<a href="http://lists.osgeo.org/pipermail/zoo-discuss/attachments/20131105/15a67898/attachment-0001.pgp" target="_blank">http://lists.osgeo.org/pipermail/zoo-discuss/attachments/20131105/15a67898/attachment-0001.pgp</a>><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Zoo-discuss mailing list<br>
<a href="mailto:Zoo-discuss@lists.osgeo.org">Zoo-discuss@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/zoo-discuss" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/zoo-discuss</a><br>
<br>
End of Zoo-discuss Digest, Vol 17, Issue 1<br>
******************************************<br>
</blockquote></div><br></div>