Python – How to consume a WSDL (SOAP) web service in Python


I want to use a WSDL SOAP based web service in Python. I have looked at the Dive Into Python code but the SOAPpy module does not work under Python 2.5.

I have tried using suds which works partly, but breaks with certain types (suds.TypeNotFound: Type not found: 'item').

I have also looked at Client but this does not appear to support WSDL.

And I have looked at ZSI but it looks very complex. Does anyone have any sample code for it?

The WSDL is and works fine with the PHP 5 SOAP client.

Best Solution

I would recommend that you have a look at SUDS

"Suds is a lightweight SOAP python client for consuming Web Services."