MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / detect_fault

Method detect_fault

suds/bindings/binding.py:170–184  ·  view source on GitHub ↗

Detect I{hidden} soapenv:Fault element in the soap body. @param body: The soap envelope body. @type body: L{Element} @raise WebFault: When found.

(self, body)

Source from the content-addressed store, hash-verified

168 return (replyroot, None)
169
170 def detect_fault(self, body):
171 """
172 Detect I{hidden} soapenv:Fault element in the soap body.
173 @param body: The soap envelope body.
174 @type body: L{Element}
175 @raise WebFault: When found.
176 """
177 fault = body.getChild('Fault', envns)
178 if fault is None:
179 return
180 unmarshaller = self.unmarshaller(False)
181 p = unmarshaller.process(fault)
182 if self.options().faults:
183 raise WebFault(p, fault)
184 return self
185
186 def replylist(self, rt, nodes):
187 """

Callers 1

get_replyMethod · 0.95

Calls 5

unmarshallerMethod · 0.95
optionsMethod · 0.95
WebFaultClass · 0.90
getChildMethod · 0.80
processMethod · 0.45

Tested by

no test coverage detected