diff options
author | jortel <devnull@localhost> | 2009-02-23 20:44:09 +0000 |
---|---|---|
committer | jortel <devnull@localhost> | 2009-02-23 20:44:09 +0000 |
commit | 85ea0663e78d482766a3d7d009d67c6f51314728 (patch) | |
tree | a5bb4b80d16f57b0979b889f55425461416a71cc /suds/bindings/binding.py | |
parent | 0528a8a56cbe011b86937aa836a3ad08f90acc98 (diff) | |
download | suds-85ea0663e78d482766a3d7d009d67c6f51314728.tar.gz |
Add wsse module containing objects to support basic ws-security. Start with supporting UsernameToken w/o password digest
Diffstat (limited to 'suds/bindings/binding.py')
-rw-r--r-- | suds/bindings/binding.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/suds/bindings/binding.py b/suds/bindings/binding.py index 368ce67..944a2b9 100644 --- a/suds/bindings/binding.py +++ b/suds/bindings/binding.py @@ -298,6 +298,9 @@ class Binding: """ n = 0 content = [] + wsse = self.options.wsse + if wsse is not None: + content.append(wsse.xml()) headers = self.options.soapheaders if len(headers) == 0: return content @@ -306,6 +309,9 @@ class Binding: pts = self.headpart_types(method) if isinstance(headers, (tuple,list)): for header in headers: + if isinstance(header, Element): + content.append(header) + continue if len(pts) == n: break h = self.mkheader(method, pts[n], header) content.append(h) |