Sunday, May 19, 2013

Easiest Way To Consume .Net Web Services - Python

http://www.jansipke.nl/python-soap-client-with-suds/

That article was very helpful for learning to use Python's SUDS library for consuming soap web services.

Here's an example of my simple client:


from suds.client import Client
client = Client("http://xxx.xxx.xxx.xxx/API/Info.asmx?WSDL")
client.service.getInfo("05/12/2013","05/12/2013")

"05/12/2013" and "05/12/2013" are both parameters

No comments:

Post a Comment