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.

Regards,
Gajendra

On Fri, Oct 29, 2010 at 2:43 AM, Devin Venable <[email protected]>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 <[email protected]
> > 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).
>>
>> j
>>
>> --
>> Joshua Kugler
>> Part-Time System Admin/Programmer
>> http://www.eeinternet.com - Fairbanks, AK
>> PGP Key: http://pgp.mit.edu/  ID 0x73B13B6A
>> _______________________________________________
>> Soap mailing list
>> [email protected]
>> http://mail.python.org/mailman/listinfo/soap
>>
>
>
_______________________________________________
Soap mailing list
[email protected]
http://mail.python.org/mailman/listinfo/soap

Reply via email to