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

Function constructBye

wsdiscovery/actions/bye.py:11–21  ·  view source on GitHub ↗

construct an envelope that represents a ``Bye`` message

(service)

Source from the content-addressed store, hash-verified

9
10
11def constructBye(service):
12 "construct an envelope that represents a ``Bye`` message"
13
14 env = SoapEnvelope()
15 env.setAction(NS_ACTION_BYE)
16 env.setTo(NS_ADDRESS_ALL)
17 env.setMessageId(uuid.uuid4().urn)
18 env.setInstanceId(str(service.getInstanceId()))
19 env.setMessageNumber(str(service.getMessageNumber()))
20 env.setEPR(service.getEPR())
21 return env
22
23
24def createByeMessage(env):

Callers 1

_sendByeMethod · 0.85

Calls 10

setActionMethod · 0.95
setToMethod · 0.95
setMessageIdMethod · 0.95
setInstanceIdMethod · 0.95
setMessageNumberMethod · 0.95
setEPRMethod · 0.95
SoapEnvelopeClass · 0.85
getInstanceIdMethod · 0.45
getMessageNumberMethod · 0.45
getEPRMethod · 0.45

Tested by

no test coverage detected