We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2636173 commit 3801bd7Copy full SHA for 3801bd7
1 file changed
docs/wsse.rst
@@ -37,3 +37,19 @@ Example usage::
37
38
.. _xmlsec: https://pypi.python.org/pypi/xmlsec
39
.. _README: https://github.com/mehcode/python-xmlsec
40
+
41
42
+UsernameToken and Signature together
43
+------------------------------------
44
45
+To use UsernameToken and Signature together, then you can pass both together
46
+to the client in a list
47
48
+ >>> from zeep import Client
49
+ >>> from zeep.wsse.username import UsernameToken
50
+ >>> user_name_token = UsernameToken('username', 'password'))
51
+ >>> signature = Signature(private_key_filename, public_key_filename,
52
+ ... optional_password))
53
+ >>> client = Client(
54
+ ... 'http://www.webservicex.net/ConvertSpeed.asmx?WSDL',
55
+ ... wsse=[user_name_token, signature])
0 commit comments