On Friday, December 20, 2013 4:36:14 AM UTC-8, sly cooper wrote:
>
> I am new to python but before I proceed with the language, I would like to 
> know if I can link my python based program to a web service. I will be 
> using this for my project, so if I cannot use a web service as my database 
> then python will not be useful to me.
>

Are you wanting to use a python program as the remote client, and web2py as 
the framework for the service that client accesses?

That shouldn't be too much of problem.  See Chapter 10 of the Web2Py book:
<http://www.web2py.com/books/default/chapter/29/10/services>
(If you haven't read any of the web2py book yet, you should get familiar 
with it.  The early examples are good experience.)

For the client side, you will need an appropriate library to import.  My 
experience is with SOAP, so I imported SUDS.  The book describes several 
choices of protocols, though, so you aren't stuck with SOAP.

(The SOAP support for Web2Py is pysimplesoap, which the @service.soap 
decorator sets up.  I think I also used the client in an experiment, but I 
think I needed a SUDS feature for accessing a particular third-party 
service.)  (Other decorators are used for JSONRPC and the like.)


/dps

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to