Re: [Qgis-user] Python Plugin utilising SOAP
I am trying to utilise data from this web service: http://www.nbnws.net/ws_3_5/GatewayWebService?wsdl The site says they are soap web services, which is why I am trying to use suds or another python library. I have had more joy with SOAPpy but still having issues. James Stott BSc (Hons) MSc | Senior Professional Nicholas Pearson Associates | 30 Brock Street | Bath | BA1 2LN T: 01225 445548 | M: - http://www.npaconsult.co.uk/ http://www.npaconsult.co.uk/http://www.npaconsult.co.uk/about-news.asp From: Noli Sicad [mailto:nsi...@gmail.com] Sent: 02 August 2012 01:45 To: James Stott Cc: Alexandre Badez; t...@wildintellect.com; qgis-user@lists.osgeo.org; qgis-developer Subject: Re: [Qgis-user] Python Plugin utilising SOAP I don't know what sort of data you want to post and get in web server. SOAP is a bit old. REST API is the way to go now. Bottle http://blog.webspecies.co.uk/2011-06-15/restful-web-services-with-python -the-easy-way.html Noli On 8/2/12, James Stott james.st...@npaconsult.co.uk wrote: Thanks for the responses. I will concentrate on telling the users they need it for now and let them decide how best to manage that. I am having problems with suds though. I point it to the wsdl and all I get back is an error as below: RuntimeError: maximum recursion depth exceeded while pickling an object May try one of the other libraries that are out there. James Stott BSc (Hons) MSc | Senior Professional Nicholas Pearson Associates | 30 Brock Street | Bath | BA1 2LN T: 01225 445548 | M: - http://www.npaconsult.co.uk/ -Original Message- From: qgis-user-boun...@lists.osgeo.org [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Alexandre Badez Sent: 31 July 2012 18:36 To: t...@wildintellect.com Cc: qgis-user@lists.osgeo.org; qgis-developer Subject: Re: [Qgis-user] Python Plugin utilising SOAP James, I'm using suds in my plugin on windows 7 64bits. The problem as you mention it, is how to include it in your plugin. For my self I didn't bother because I made a setup.exe that install suds and the plugin where they need to be. I suppose you can copy it in your plugin dir and do something like: from my_plugin import suds suds.blabla It should work. On Tue, Jul 31, 2012 at 6:25 PM, Alex Mandel tech_...@wildintellect.com wrote: James, This discussion would be better for the qgis-developer mailing list. To get started, are you talking about a C++ or a python plugin, and what language is the Suds library in? Thanks, Alex On 07/31/2012 07:12 AM, James Stott wrote: I would like to write a plugin which retrieves data using web services. It would appear I need to use SOAP to send and receive requests. How would I go about setting up soap? I have OSGeo4W installed on Windows 7 64 bit. Could anyone advise me on what the best method to go about this would be? I am using OSGEO4W but I cannot find a SOAP library in the package listing. I have found the Suds library which looks promising. How would I go about making sure this would be usable in a plugin in QGIS on all platforms - is there a way to include the suds library with my plugin? James James Stott BSc (Hons) MSc | Senior Professional Nicholas Pearson Associates | 30 Brock Street | Bath | BA1 2LN T: 01225 445548 | M: - http://www.npaconsult.co.uk/ http://www.npaconsult.co.uk/http://www.npaconsult.co.uk/about-news.a s p http://www.npaconsult.co.uk/terms.asp This Electronic Transmission is intended only for the attention of the addressee. It may contain privileged and confidential information. If you are not the person for whom it is intended, you must not copy, distribute or take any action in reliance on it. If you have received this electronic transmission in error please notify us immediately by telephone, delete the transmission and destroy any hard copies. Nicholas Pearson Associates has used all reasonable efforts to ensure that this message and any attachments are free from viruses. Nicholas Pearson Associates, 30 Brock Street, Bath, BA1 2LN , Tel: +44 (0) 01225 445548, Fax: +44 (0) 01225 312387, Website: http://www.npaconsult.co.uk/ ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user -- Alex ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user http://www.npaconsult.co.uk/terms.asp This Electronic Transmission is intended only for the attention of the addressee. It may contain privileged and confidential information
Re: [Qgis-user] Python Plugin utilising SOAP
Thanks for the responses. I will concentrate on telling the users they need it for now and let them decide how best to manage that. I am having problems with suds though. I point it to the wsdl and all I get back is an error as below: RuntimeError: maximum recursion depth exceeded while pickling an object May try one of the other libraries that are out there. James Stott BSc (Hons) MSc | Senior Professional Nicholas Pearson Associates | 30 Brock Street | Bath | BA1 2LN T: 01225 445548 | M: - http://www.npaconsult.co.uk/ -Original Message- From: qgis-user-boun...@lists.osgeo.org [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Alexandre Badez Sent: 31 July 2012 18:36 To: t...@wildintellect.com Cc: qgis-user@lists.osgeo.org; qgis-developer Subject: Re: [Qgis-user] Python Plugin utilising SOAP James, I'm using suds in my plugin on windows 7 64bits. The problem as you mention it, is how to include it in your plugin. For my self I didn't bother because I made a setup.exe that install suds and the plugin where they need to be. I suppose you can copy it in your plugin dir and do something like: from my_plugin import suds suds.blabla It should work. On Tue, Jul 31, 2012 at 6:25 PM, Alex Mandel tech_...@wildintellect.com wrote: James, This discussion would be better for the qgis-developer mailing list. To get started, are you talking about a C++ or a python plugin, and what language is the Suds library in? Thanks, Alex On 07/31/2012 07:12 AM, James Stott wrote: I would like to write a plugin which retrieves data using web services. It would appear I need to use SOAP to send and receive requests. How would I go about setting up soap? I have OSGeo4W installed on Windows 7 64 bit. Could anyone advise me on what the best method to go about this would be? I am using OSGEO4W but I cannot find a SOAP library in the package listing. I have found the Suds library which looks promising. How would I go about making sure this would be usable in a plugin in QGIS on all platforms - is there a way to include the suds library with my plugin? James James Stott BSc (Hons) MSc | Senior Professional Nicholas Pearson Associates | 30 Brock Street | Bath | BA1 2LN T: 01225 445548 | M: - http://www.npaconsult.co.uk/ http://www.npaconsult.co.uk/http://www.npaconsult.co.uk/about-news.as p http://www.npaconsult.co.uk/terms.asp This Electronic Transmission is intended only for the attention of the addressee. It may contain privileged and confidential information. If you are not the person for whom it is intended, you must not copy, distribute or take any action in reliance on it. If you have received this electronic transmission in error please notify us immediately by telephone, delete the transmission and destroy any hard copies. Nicholas Pearson Associates has used all reasonable efforts to ensure that this message and any attachments are free from viruses. Nicholas Pearson Associates, 30 Brock Street, Bath, BA1 2LN , Tel: +44 (0) 01225 445548, Fax: +44 (0) 01225 312387, Website: http://www.npaconsult.co.uk/ ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user -- Alex ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Python Plugin utilising SOAP
I don't know what sort of data you want to post and get in web server. SOAP is a bit old. REST API is the way to go now. Bottle http://blog.webspecies.co.uk/2011-06-15/restful-web-services-with-python-the-easy-way.html Noli On 8/2/12, James Stott james.st...@npaconsult.co.uk wrote: Thanks for the responses. I will concentrate on telling the users they need it for now and let them decide how best to manage that. I am having problems with suds though. I point it to the wsdl and all I get back is an error as below: RuntimeError: maximum recursion depth exceeded while pickling an object May try one of the other libraries that are out there. James Stott BSc (Hons) MSc | Senior Professional Nicholas Pearson Associates | 30 Brock Street | Bath | BA1 2LN T: 01225 445548 | M: - http://www.npaconsult.co.uk/ -Original Message- From: qgis-user-boun...@lists.osgeo.org [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Alexandre Badez Sent: 31 July 2012 18:36 To: t...@wildintellect.com Cc: qgis-user@lists.osgeo.org; qgis-developer Subject: Re: [Qgis-user] Python Plugin utilising SOAP James, I'm using suds in my plugin on windows 7 64bits. The problem as you mention it, is how to include it in your plugin. For my self I didn't bother because I made a setup.exe that install suds and the plugin where they need to be. I suppose you can copy it in your plugin dir and do something like: from my_plugin import suds suds.blabla It should work. On Tue, Jul 31, 2012 at 6:25 PM, Alex Mandel tech_...@wildintellect.com wrote: James, This discussion would be better for the qgis-developer mailing list. To get started, are you talking about a C++ or a python plugin, and what language is the Suds library in? Thanks, Alex On 07/31/2012 07:12 AM, James Stott wrote: I would like to write a plugin which retrieves data using web services. It would appear I need to use SOAP to send and receive requests. How would I go about setting up soap? I have OSGeo4W installed on Windows 7 64 bit. Could anyone advise me on what the best method to go about this would be? I am using OSGEO4W but I cannot find a SOAP library in the package listing. I have found the Suds library which looks promising. How would I go about making sure this would be usable in a plugin in QGIS on all platforms - is there a way to include the suds library with my plugin? James James Stott BSc (Hons) MSc | Senior Professional Nicholas Pearson Associates | 30 Brock Street | Bath | BA1 2LN T: 01225 445548 | M: - http://www.npaconsult.co.uk/ http://www.npaconsult.co.uk/http://www.npaconsult.co.uk/about-news.as p http://www.npaconsult.co.uk/terms.asp This Electronic Transmission is intended only for the attention of the addressee. It may contain privileged and confidential information. If you are not the person for whom it is intended, you must not copy, distribute or take any action in reliance on it. If you have received this electronic transmission in error please notify us immediately by telephone, delete the transmission and destroy any hard copies. Nicholas Pearson Associates has used all reasonable efforts to ensure that this message and any attachments are free from viruses. Nicholas Pearson Associates, 30 Brock Street, Bath, BA1 2LN , Tel: +44 (0) 01225 445548, Fax: +44 (0) 01225 312387, Website: http://www.npaconsult.co.uk/ ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user -- Alex ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] Python Plugin utilising SOAP
I would like to write a plugin which retrieves data using web services. It would appear I need to use SOAP to send and receive requests. How would I go about setting up soap? I have OSGeo4W installed on Windows 7 64 bit. Could anyone advise me on what the best method to go about this would be? I am using OSGEO4W but I cannot find a SOAP library in the package listing. I have found the Suds library which looks promising. How would I go about making sure this would be usable in a plugin in QGIS on all platforms - is there a way to include the suds library with my plugin? James James Stott BSc (Hons) MSc | Senior Professional Nicholas Pearson Associates | 30 Brock Street | Bath | BA1 2LN T: 01225 445548 | M: - http://www.npaconsult.co.uk/ http://www.npaconsult.co.uk/http://www.npaconsult.co.uk/about-news.asp http://www.npaconsult.co.uk/terms.asp This Electronic Transmission is intended only for the attention of the addressee. It may contain privileged and confidential information. If you are not the person for whom it is intended, you must not copy, distribute or take any action in reliance on it. If you have received this electronic transmission in error please notify us immediately by telephone, delete the transmission and destroy any hard copies. Nicholas Pearson Associates has used all reasonable efforts to ensure that this message and any attachments are free from viruses. Nicholas Pearson Associates, 30 Brock Street, Bath, BA1 2LN , Tel: +44 (0) 01225 445548, Fax: +44 (0) 01225 312387, Website: http://www.npaconsult.co.uk/ ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Python Plugin utilising SOAP
James, This discussion would be better for the qgis-developer mailing list. To get started, are you talking about a C++ or a python plugin, and what language is the Suds library in? Thanks, Alex On 07/31/2012 07:12 AM, James Stott wrote: I would like to write a plugin which retrieves data using web services. It would appear I need to use SOAP to send and receive requests. How would I go about setting up soap? I have OSGeo4W installed on Windows 7 64 bit. Could anyone advise me on what the best method to go about this would be? I am using OSGEO4W but I cannot find a SOAP library in the package listing. I have found the Suds library which looks promising. How would I go about making sure this would be usable in a plugin in QGIS on all platforms - is there a way to include the suds library with my plugin? James James Stott BSc (Hons) MSc | Senior Professional Nicholas Pearson Associates | 30 Brock Street | Bath | BA1 2LN T: 01225 445548 | M: - http://www.npaconsult.co.uk/ http://www.npaconsult.co.uk/http://www.npaconsult.co.uk/about-news.asp http://www.npaconsult.co.uk/terms.asp This Electronic Transmission is intended only for the attention of the addressee. It may contain privileged and confidential information. If you are not the person for whom it is intended, you must not copy, distribute or take any action in reliance on it. If you have received this electronic transmission in error please notify us immediately by telephone, delete the transmission and destroy any hard copies. Nicholas Pearson Associates has used all reasonable efforts to ensure that this message and any attachments are free from viruses. Nicholas Pearson Associates, 30 Brock Street, Bath, BA1 2LN , Tel: +44 (0) 01225 445548, Fax: +44 (0) 01225 312387, Website: http://www.npaconsult.co.uk/ ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Python Plugin utilising SOAP
James, I'm using suds in my plugin on windows 7 64bits. The problem as you mention it, is how to include it in your plugin. For my self I didn't bother because I made a setup.exe that install suds and the plugin where they need to be. I suppose you can copy it in your plugin dir and do something like: from my_plugin import suds suds.blabla It should work. On Tue, Jul 31, 2012 at 6:25 PM, Alex Mandel tech_...@wildintellect.com wrote: James, This discussion would be better for the qgis-developer mailing list. To get started, are you talking about a C++ or a python plugin, and what language is the Suds library in? Thanks, Alex On 07/31/2012 07:12 AM, James Stott wrote: I would like to write a plugin which retrieves data using web services. It would appear I need to use SOAP to send and receive requests. How would I go about setting up soap? I have OSGeo4W installed on Windows 7 64 bit. Could anyone advise me on what the best method to go about this would be? I am using OSGEO4W but I cannot find a SOAP library in the package listing. I have found the Suds library which looks promising. How would I go about making sure this would be usable in a plugin in QGIS on all platforms - is there a way to include the suds library with my plugin? James James Stott BSc (Hons) MSc | Senior Professional Nicholas Pearson Associates | 30 Brock Street | Bath | BA1 2LN T: 01225 445548 | M: - http://www.npaconsult.co.uk/ http://www.npaconsult.co.uk/http://www.npaconsult.co.uk/about-news.asp http://www.npaconsult.co.uk/terms.asp This Electronic Transmission is intended only for the attention of the addressee. It may contain privileged and confidential information. If you are not the person for whom it is intended, you must not copy, distribute or take any action in reliance on it. If you have received this electronic transmission in error please notify us immediately by telephone, delete the transmission and destroy any hard copies. Nicholas Pearson Associates has used all reasonable efforts to ensure that this message and any attachments are free from viruses. Nicholas Pearson Associates, 30 Brock Street, Bath, BA1 2LN , Tel: +44 (0) 01225 445548, Fax: +44 (0) 01225 312387, Website: http://www.npaconsult.co.uk/ ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user -- Alex ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Python Plugin utilising SOAP
I have found the Suds library which looks promising. How would I go about making sure this would be usable in a plugin in QGIS on all platforms - is there a way to include the suds library with my plugin? You can write in the ReadMe that you plugin needs suds. Tell them to install suds. http://pypi.python.org/pypi/suds/ You can also create an error messages in your plugins about the dependency of suds. For, example, contours QGIS plugin need, matplotlib and shapely. First, it shows message of the dependency of matplotlib error, then shapely error. Have a look at those plugins that uses some python packages. see how the create those error messages. Noli ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user