<div dir="ltr">Hi,<br><br><div class="gmail_quote"><div dir="ltr">pá 6. 11. 2015 v 16:15 odesílatel Lorenzo Bottaccioli <<a href="mailto:lorenzo.bottaccioli@gmail.com">lorenzo.bottaccioli@gmail.com</a>> napsal:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello Jachym,<br><br>I'm tring to setup a microservice platform with pyWPS-4. I was usign before psWPS-3.2. I have some questions:<div><br></div><div>1) I'cant run the simple process say hello :( if i use this one dose not work </div><div><i><a href="http://localhost:5000/wps?service=WPS&request=execute&identifier=say_hello&version=1.0.0&datainputs=[name=Lorenzo]" target="_blank">http://localhost:5000/wps?service=WPS&request=execute&identifier=say_hello&version=1.0.0&datainputs=[name=Lorenzo]</a> </i></div><div><br></div><div>the output in the web browser is</div><div><br></div><div> <span style="color:rgb(0,0,0);font-family:monospace;font-size:13px"><ows:ExceptionReport</span><span style="color:rgb(0,0,0);font-family:monospace;font-size:13px"> <span>xmlns:ows</span>="<span><a href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a></span>"</span><span style="color:rgb(0,0,0);font-family:monospace;font-size:13px"> <span>xmlns:xsi</span>="<span><a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a></span>"</span><span style="color:rgb(0,0,0);font-family:monospace;font-size:13px"> <span>xsi:schemaLocation</span>="<span><a href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a> ../../../ows/1.1.0/owsExceptionReport.xsd</span>"</span><span style="color:rgb(0,0,0);font-family:monospace;font-size:13px"> <span>version</span>="<span>1.0.0</span>"</span><span style="color:rgb(0,0,0);font-family:monospace;font-size:13px">></span></div><div style="margin-left:1em;color:rgb(0,0,0);font-family:monospace;font-size:13px"><div><span><ows:Exception<span> <span>exceptionCode</span>="<span>MissingParameterValue</span>"</span><span> <span>locator</span>="<span>name</span>"</span>/></span></div></div><div style="color:rgb(0,0,0);font-family:monospace;font-size:13px"><span></ows:ExceptionReport></span></div></div></blockquote><div><br></div><div>Hmm, works  for me, I use</div><div><br></div><div><a href="http://localhost:5002/wps?service=WPS&request=execute&identifier=say_hello&version=1.0.0&datainputs=name=Lorenzo">http://localhost:5002/wps?service=WPS&request=execute&identifier=say_hello&version=1.0.0&datainputs=name=Lorenzo</a><br></div><div><br></div><div>NOTE: Get rid of [] brackets, it was one of not-so-well implemented features of PyWPS < 4</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="color:rgb(0,0,0);font-family:monospace;font-size:13px"><br></div><div style="color:rgb(0,0,0)"><font face="arial, helvetica, sans-serif">and in the shell is:</font></div><div style="color:rgb(0,0,0)"><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif"><div style="color:rgb(0,0,0)"><i>lorenzo@lorenzo-eda:~/Scaricati/pywps-4-demo-master/prova$ python demo.py </i></div><div style="color:rgb(0,0,0)"><i>Configuration file(s) ['/home/lorenzo/Scaricati/pywps-4-demo-master/prova/pywps.cfg'] loaded</i></div><div style="color:rgb(0,0,0)"><i> * Running on <a href="http://localhost:5000/" target="_blank">http://localhost:5000/</a></i></div><div style="color:rgb(0,0,0)"><i>ERROR:root:</i></div><div style="color:rgb(0,0,0)"><i>None</i></div><div style="color:rgb(0,0,0)"><i>127.0.0.1 - - [06/Nov/2015 16:03:56] "GET /wps?service=WPS&request=execute&identifier=say_hello&version=1.0.0&datainputs=[name=Lorenzo] HTTP/1.1" 400 -</i></div><div style="color:rgb(0,0,0)"><i>INFO:werkzeug:127.0.0.1 - - [06/Nov/2015 16:03:56] "GET /wps?service=WPS&request=execute&identifier=say_hello&version=1.0.0&datainputs=[name=Lorenzo] HTTP/1.1" 400 -</i></div><div style="color:rgb(0,0,0)"><br></div><div style="color:rgb(0,0,0)"><span style="color:rgb(34,34,34);font-family:arial,sans-serif"> can youe give me an example of a correct request?<br></span><br>2) I have noticed that there is no more the specification grassLocation in the definition of the procces. I have found a way to work with grass which is to <i>import gras.script.setup as gsetup</i> and run the command  <i>gsetup.init(gisbase,gisdb, location) </i> defining gisabase gisdb and location varaibles. Is it the only way o there is a impletantion like in pyWPS3.2?</div></font></div></div></blockquote><div><br></div><div>We did not manage to write any special code in PyWPS-4, if this works for you, Martin Landa says, it should be ok theoretically.</div><div><br></div><div>If it works, it's ok</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><font face="arial, helvetica, sans-serif"><div style="color:rgb(0,0,0)"><br></div><div><font color="#000000">3) Using </font><span style="font-size:13px"><font color="#000000"><i><a href="http://localhost:5000/wps?WSDL" target="_blank">http://localhost:5000/wps?WSDL</a> </i>in Qgis I cannot use the qgis wps client. The linux shell reports this error:</font></span></div><div><span style="font-size:13px"><font color="#000000"><br></font></span></div><div><font color="#000000"><div>127.0.0.1 - - [06/Nov/2015 16:10:22] "GET /wps?service=WPS&request=getcapabilities HTTP/1.1" 200 -</div><div>INFO:werkzeug:127.0.0.1 - - [06/Nov/2015 16:10:22] "GET /wps?service=WPS&request=getcapabilities HTTP/1.1" 200 -</div><div>ERROR:root:WSDL not implemented</div><div>None</div><div>127.0.0.1 - - [06/Nov/2015 16:11:33] "GET /wps?WSDL&Request=GetCapabilities&identifier=&Service=WPS&Version=1.0.0 HTTP/1.1" 400 -</div><div>INFO:werkzeug:127.0.0.1 - - [06/Nov/2015 16:11:33] "GET /wps?WSDL&Request=GetCapabilities&identifier=&Service=WPS&Version=1.0.0 HTTP/1.1" 400 -</div><div style="font-size:13px"><br></div><div style="font-size:13px">How can I solve this?</div></font></div></font></div></div></blockquote><div><br></div><div>Do not use WSDL interface - it's really not implemented in PyWPS-4, but you should really not need to use it. Just use /wps?request=getcapabilities. ..</div><div><br></div><div>the result should be </div><div><a href="http://localhost:5002/wps?Request=GetCapabilities&identifier=&Service=WPS&Version=1.0.0">http://localhost:5002/wps?Request=GetCapabilities&identifier=&Service=WPS&Version=1.0.0</a><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><font face="arial, helvetica, sans-serif"><div><font color="#000000"><div style="font-size:13px"><br></div><div style="font-size:13px">4) Do you think is possible to deploy multiple services that works in parallel on localhost:5000/ and each of them as it's own few process inside. The various service will differ from each other like in this localhost:5000/service1 localhost:5000/service2. What I want to achive is that if I Build a new service and i lunch it will automatically deploy the new url. Is this achivable using WSGI?<br></div></font></div></font></div></div></blockquote><div><br></div><div><br></div><div>This should be possible with wsgi deployment - you should be inspired by demo.py in pywps-4-demo project <a href="https://github.com/PyWPS/pywps-4-demo">https://github.com/PyWPS/pywps-4-demo</a></div><div><br></div><div>The flask stand-alone server should not be used in  production environment</div><div><br></div><div>Good luck!</div><div><br></div><div>Jachym</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><font face="arial, helvetica, sans-serif"><div><font color="#000000"><div style="font-size:13px"><br>Best Regards,<br><br>Lorenzo Bottaccioli</div></font></div></font></div></div>
</blockquote></div></div>