File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff 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])
You can’t perform that action at this time.
0 commit comments