[Soap-Python] how to add wsse security header
gajendraph at gmail.com
Mon Nov 8 13:05:22 CET 2010
Thanks All, for your valuable replies.
Finally, I used ZSI for my soap client program. We can set UsernameToken in
ZSI and this is working fine.
On Fri, Oct 29, 2010 at 2:43 AM, Devin Venable <venable.devin at gmail.com>wrote:
> Suds wsse works, but it is lightweight. If you only need UsernameToken,
> and you don't need your password to be in digest form, it works. If you
> need to sign or encrypt elements in your body, you are still out of luck. I
> tried using a suds plugin to do my own signing using xmlsec, but having to
> switch between DOM implementations is a pain, as SUDS uses its own and
> xmlsec uses another. In any case, good luck and be sure to point it out if
> you find a robust solution. For now, I've had to jump over to the JAVA side
> and use WSS4J which is really mature. We need an equivalent for Python.
> On Thu, Oct 28, 2010 at 2:59 PM, Joshua J. Kugler <joshua at eeinternet.com
> > wrote:
>> On Tuesday 26 October 2010, Gajendra PH elucidated thus:
>> > Hi,
>> > I am new to SOAP client programming. I want to add wsse security
>> > header in my SOAP header.
>> > I found that suds is providing this (suds.wsse) but not in SOAP WSDL
>> > Proxy.
>> > Can any one help me how to do this in SOAP client using soaplib?
>> > security=Security()
>> > token=UsernameToken(username,password)
>> > security.tokens.append(token)
>> > client.set_options(wsse=security)
>> As Burak mentioned, soaplib does not support WSSE, but another Python
>> SOAP client does. Take a look at https://fedorahosted.org/suds/ I can
>> verify from first hand experience that its WSSE implementation works
>> (at least with the Yahoo Marketing API).
>> Joshua Kugler
>> Part-Time System Admin/Programmer
>> http://www.eeinternet.com - Fairbanks, AK
>> PGP Key: http://pgp.mit.edu/ ID 0x73B13B6A
>> Soap mailing list
>> Soap at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Soap