[Soap-Python] client for wsdl-driven development using authentication headers?

Stepan Kornyakov stepankk at gmail.com
Fri Jan 27 08:40:50 CET 2012


Hello, Kristian

Most SOAP clients allow you to set headers for a client instance, for
example, take a look at how it is used with suds:
https://fedorahosted.org/suds/wiki/Documentation#SOAPHEADERS

Best regards, Stepan.

2012/1/27 Kristian Rink <kr at zimmer428.net>:
> Folks;
>
> I'm about to connect to a remote SOAP service that provides a rather
> verbose WSDL. According to both the service reference documentation and
> to the stubs my Java SOAP framework managed to generate, there is a
> "session header" information that needs to be added to the soap-header
> section of any outbound message more or less like this:
>
> <soap:Header>
>        <SessionHeader xmlns="service">
>                <Key>ae6e822bc85c1c182f29bac9bb99f8e5</Key>
>        </SessionHeader>
> </soap:Header>
>
> In the Java client classes, this happens in a rather straightforward
> way (by having an additional "sessionHeader" parameter in each of the
> remote function calls in the stub classes), but I am unsure how to
> achieve this effect with any of the Python frameworks out there. So to
> ask: Inspirations on that, anyone? Any input, and be that just pointers
> to things worth reading, highly appreciated! :)
>
> Cheers,
> Kristian
> _______________________________________________
> Soap mailing list
> Soap at python.org
> http://mail.python.org/mailman/listinfo/soap


More information about the Soap mailing list