MCPcopy Create free account
hub / github.com/andreikop/python-ws-discovery / parseByeMessage

Function parseByeMessage

wsdiscovery/actions/bye.py:46–58  ·  view source on GitHub ↗

parse a XML message into a SOAP envelope object

(dom)

Source from the content-addressed store, hash-verified

44
45
46def parseByeMessage(dom):
47 "parse a XML message into a SOAP envelope object"
48 env = SoapEnvelope()
49 env.setAction(NS_ACTION_BYE)
50
51 env.setMessageId(dom.getElementsByTagNameNS(NS_ADDRESSING, "MessageID")[0].firstChild.data.strip())
52 env.setTo(dom.getElementsByTagNameNS(NS_ADDRESSING, "To")[0].firstChild.data.strip())
53
54 _parseAppSequence(dom, env)
55
56 env.setEPR(dom.getElementsByTagNameNS(NS_ADDRESSING, "Address")[0].firstChild.data.strip())
57
58 return env
59
60
61

Callers 1

parseSOAPMessageFunction · 0.85

Calls 6

setActionMethod · 0.95
setMessageIdMethod · 0.95
setToMethod · 0.95
setEPRMethod · 0.95
SoapEnvelopeClass · 0.85
_parseAppSequenceFunction · 0.85

Tested by

no test coverage detected