Skip to content

Commit

Permalink
Added support for namespaces in SOAP 11 Fault node
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasco Henriques authored and mvantellingen committed Aug 3, 2021
1 parent 7807cb0 commit 0704fb5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/zeep/wsdl/bindings/soap.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,15 +322,15 @@ def process_error(self, doc, operation):
)

def get_text(name):
child = fault_node.find(name)
child = fault_node.find(name, namespaces=fault_node.nsmap)
if child is not None:
return child.text
return child.text

raise Fault(
message=get_text("faultstring"),
code=get_text("faultcode"),
actor=get_text("faultactor"),
detail=fault_node.find("detail"),
detail=fault_node.find("detail", namespaces=fault_node.nsmap),
)

def _set_http_headers(self, serialized, operation):
Expand Down

0 comments on commit 0704fb5

Please sign in to comment.