[Baypiggies] SOAP and Python?

Aahz aahz at pythoncraft.com
Tue Dec 18 07:31:09 CET 2012


On Mon, Dec 17, 2012, Glen Jarvis wrote:
>
> I'm apparently dirty and lazy (I have always preferred REST over SOAP). So,
> I've never had the joy of learning to integrate with such a service. As it
> is, I need to learn today. So I don't spin my wheels, are there any nice
> tutorials that will take me from very beginning to end without a lot of
> bumps along the way?
> 
> The client is up to me so I've decided to use the SUDS client:
> 
> from suds.client import Client
> url = 'http://blahblahblah'
> client = Client(url)

The only way I've ever been able to get SOAP to work is to manually
transcribe another language's SOAP examples.  The main trick is to use
the SOAP tools to take the WSDL URL and generate the Python code.  (This
was something like five years ago, so I'm afraid I'm handwaving lots.)
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

Weinberg's Second Law: If builders built buildings the way programmers wrote 
programs, then the first woodpecker that came along would destroy civilization.


More information about the Baypiggies mailing list