Skip to content

Commit 3801bd7

Browse files
diegougmvantellingen
authored andcommitted
[add] doc to use list of wsse
1 parent 2636173 commit 3801bd7

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/wsse.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,19 @@ Example usage::
3737

3838
.. _xmlsec: https://pypi.python.org/pypi/xmlsec
3939
.. _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

Comments
 (0)