Re: how to generate a wsdl file for a web service in python
Le dimanche 21 décembre 2014 12:31:50 UTC, Burak Arslan a écrit : > 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 hi tkanks for your help but i used tornado to create my web service and it worked good and it generate my wsdl file -- https://mail.python.org/mailman/listinfo/python-list
Re: how to generate a wsdl file for a web service in python
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 -- https://mail.python.org/mailman/listinfo/python-list
Re: how to generate a wsdl file for a web service in python
Le jeudi 18 décembre 2014 11:46:00 UTC, Burak Arslan a écrit : > On 12/18/14 11:58, brice DORA wrote: > > hi to all I am new to python and as part of my project I would like to > > create a SOAP web service. for now I've developed my python file with all > > the methods of my future web service, but my problem now is how to generate > > the wsdl file ... my concern may seem to move so bear with me because I am > > a novice in this field. thank you in advance > > > Hi, > > You can use Spyne to generate the wsdl file. > > http://spyne.io/docs/2.10/manual/02_helloworld.html > https://github.com/arskom/spyne/blob/master/examples/helloworld_soap.py > > There's also s...@python.org for your soap-specific questions. > > best, > burak okey thanks u but this example use a simple method then in my case 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... i want to create the web service and deploying it from my python file...thanks very much in advance -- https://mail.python.org/mailman/listinfo/python-list
Re: how to generate a wsdl file for a web service in python
On 12/18/14 11:58, brice DORA wrote: > hi to all I am new to python and as part of my project I would like to create > a SOAP web service. for now I've developed my python file with all the > methods of my future web service, but my problem now is how to generate the > wsdl file ... my concern may seem to move so bear with me because I am a > novice in this field. thank you in advance Hi, You can use Spyne to generate the wsdl file. http://spyne.io/docs/2.10/manual/02_helloworld.html https://github.com/arskom/spyne/blob/master/examples/helloworld_soap.py There's also s...@python.org for your soap-specific questions. best, burak -- https://mail.python.org/mailman/listinfo/python-list
how to generate a wsdl file for a web service in python
hi to all I am new to python and as part of my project I would like to create a SOAP web service. for now I've developed my python file with all the methods of my future web service, but my problem now is how to generate the wsdl file ... my concern may seem to move so bear with me because I am a novice in this field. thank you in advance -- https://mail.python.org/mailman/listinfo/python-list