Reputation: 12120
Is there a way to add the wsse:Security, UsernameToken header to the SOAP requests in ZSI, Python? I searched on the web, but couldn't find an answer.
Upvotes: 5
Views: 6975
Reputation: 12120
After searching further, I'm convinced and planning to use suds, https://fedorahosted.org/suds/, which seems to be user-friendly, feature-rich, and provides classes and methods to add the UsernameToken to the SOAP header.
Suds Documentation on WS-Security: https://fedorahosted.org/suds/wiki/Documentation#WS-SECURITY
Upvotes: 4