Skip to content

Commit

Permalink
Support process SOAP 1.2 reply
Browse files Browse the repository at this point in the history
  • Loading branch information
eshizhan authored Dec 23, 2023
1 parent 7f4da9d commit 82284f7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions suds/bindings/binding.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@


envns = ("SOAP-ENV", "http://schemas.xmlsoap.org/soap/envelope/")
envns12 = ("SOAP-ENV", "http://www.w3.org/2003/05/soap-envelope")


class Binding(object):
Expand Down Expand Up @@ -146,8 +147,12 @@ def get_reply(self, method, replyroot):
"""
soapenv = replyroot.getChild("Envelope", envns)
if not soapenv:
soapenv = replyroot.getChild("Envelope", envns12)
soapenv.promotePrefixes()
soapbody = soapenv.getChild("Body", envns)
if not soapbody:
soapbody = soapenv.getChild("Body", envns12)
soapbody = self.multiref.process(soapbody)
nodes = self.replycontent(method, soapbody)
rtypes = self.returned_types(method)
Expand Down

0 comments on commit 82284f7

Please sign in to comment.