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

Function constructResolve

wsdiscovery/actions/resolve.py:11–19  ·  view source on GitHub ↗

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

(epr)

Source from the content-addressed store, hash-verified

9
10
11def constructResolve(epr):
12 "construct an envelope that represents a ``Resolve`` message"
13
14 env = SoapEnvelope()
15 env.setAction(NS_ACTION_RESOLVE)
16 env.setTo(NS_ADDRESS_ALL)
17 env.setMessageId(uuid.uuid4().urn)
18 env.setEPR(epr)
19 return env
20
21
22def createResolveMessage(env):

Callers 1

_sendResolveMethod · 0.85

Calls 5

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

Tested by

no test coverage detected