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

Function constructHello

wsdiscovery/actions/hello.py:11–26  ·  view source on GitHub ↗

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

(service)

Source from the content-addressed store, hash-verified

9
10
11def constructHello(service):
12 "construct an envelope that represents a ``Hello`` message"
13
14 service.incrementMessageNumber()
15
16 env = SoapEnvelope()
17 env.setAction(NS_ACTION_HELLO)
18 env.setTo(NS_ADDRESS_ALL)
19 env.setMessageId(uuid.uuid4().urn)
20 env.setInstanceId(str(service.getInstanceId()))
21 env.setMessageNumber(str(service.getMessageNumber()))
22 env.setTypes(service.getTypes())
23 env.setScopes(service.getScopes())
24 env.setXAddrs(service.getXAddrs())
25 env.setEPR(service.getEPR())
26 return env
27
28
29def createHelloMessage(env):

Callers 1

_sendHelloMethod · 0.85

Calls 15

setActionMethod · 0.95
setToMethod · 0.95
setMessageIdMethod · 0.95
setInstanceIdMethod · 0.95
setMessageNumberMethod · 0.95
setTypesMethod · 0.95
setScopesMethod · 0.95
setXAddrsMethod · 0.95
setEPRMethod · 0.95
SoapEnvelopeClass · 0.85
getInstanceIdMethod · 0.45

Tested by

no test coverage detected