Easy Python SOAP with SUDS, with a few Date/Time gotchas.
by Steve Manchir
In the world of web services, SOAP is a bit like the quip about the old Holy Roman Empire. It’s neither Simple nor an Object nor a Protocol (talk amongst yourselves). Actually though, the main thing is that it’s not all that simple. It’s just a teensy bit verbose and over-engineered for most uses. So in order to consume a partner’s SOAP web service with a minimum of overhead and teeth-gnashing, we use a very lightweight SOAP client called “suds”. In addition to its too-precious name, the other benefit of suds is that it is simple. To connect to a web service, you just do the following:
from suds.client import Client url = 'http://localhost:3000/webservices/WebServiceTestThing?wsdl' client = Client(url)
And you have a connection to the web service. It’s just that easy™. Read more →