Python SOAP server that also generates WSDL

I am looking to implement a SOAP web service in python on top of IIS. Is there a recommended library that takes this Python class and exposes its functions as web methods? It would be great if the mentioned library also automatically creates a WSDL file based on the interface.

+4
source share
3 answers

Perhaps you should take a look at https://github.com/stepank/pyws , it can display python functions as SOAP methods and provides a description of WSDL. I just released version 1.0, this interoperability has been tested on several clients, so it seems to be very friendly.

+2
source

Take a look at SOAPpy ( http://pywebsvcs.sourceforge.net/ ). This allows you to expose your functions as web methods, but you need to add a line of code (manually) to register your function with the web service. This is pretty easy to do. Also, it does not automatically generate wsdl for you. Here is an example of how to create a web service and set a function:

server = SOAPpy.SOAPServer(("", 8080)) server.registerFunction(self.hello) 
0
source

All Articles