how to generate a wsdl file for a web service in python

Burak Arslan burak.arslan at arskom.com.tr
Sun Dec 21 07:31:03 EST 2014


On 12/19/14 12:45, brice DORA wrote:
> i have already my python file which contains all methods of my web service. so do you give a example or tell me how i can do it...

No, all you need is there in that example.

You need to decorate your functions using Spyne's @rpc, denote
input/output types using Spyne's type markers, wrap it inside a subclass
of Spyne's ServiceBase, pass the resulting service class to a Spyne
application setting your input/output protocols (you probably want Soap)
and pass that application to a transport of your choice (you probably
want WsgiApplication). If you need a Wsgi server, use CherryPy.

Bon courage,
Burak




More information about the Python-list mailing list