Skip to content

Commit 2636173

Browse files
diegougmvantellingen
authored andcommitted
[update] use list of wsse
1 parent 42a94f0 commit 2636173

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/zeep/wsdl/bindings/soap.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,13 @@ def _create(self, operation, args, kwargs, client=None, options=None):
8686

8787
# Apply WSSE
8888
if client.wsse:
89-
envelope, http_headers = client.wsse.apply(envelope, http_headers)
89+
if isinstance(client.wsse, list):
90+
for wsse in client.wsse:
91+
envelope, http_headers = wsse.apply(
92+
envelope, http_headers)
93+
else:
94+
envelope, http_headers = client.wsse.apply(
95+
envelope, http_headers)
9096

9197
# Add extra http headers from the setings object
9298
if client.settings.extra_http_headers:

0 commit comments

Comments
 (0)