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

Function constructResolveMatch

wsdiscovery/actions/resolvematch.py:14–30  ·  view source on GitHub ↗

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

(service, relatesTo)

Source from the content-addressed store, hash-verified

12
13
14def constructResolveMatch(service, relatesTo):
15 "construct an envelope that represents a ``Resolve Match`` message"
16
17 service.incrementMessageNumber()
18
19 env = SoapEnvelope()
20 env.setAction(NS_ACTION_RESOLVE_MATCH)
21 env.setTo(NS_ADDRESS_UNKNOWN)
22 env.setMessageId(uuid.uuid4().urn)
23 env.setInstanceId(str(service.getInstanceId()))
24 env.setMessageNumber(str(service.getMessageNumber()))
25 env.setRelatesTo(relatesTo)
26
27 prb = ProbeResolveMatch(service.getEPR(), service.getTypes(), service.getScopes(), \
28 service.getXAddrs(), str(service.getMetadataVersion()))
29 env.getProbeResolveMatches().append(prb)
30 return env
31
32
33def createResolveMatchMessage(env):

Callers 1

_sendResolveMatchMethod · 0.85

Calls 15

setActionMethod · 0.95
setToMethod · 0.95
setMessageIdMethod · 0.95
setInstanceIdMethod · 0.95
setMessageNumberMethod · 0.95
setRelatesToMethod · 0.95
SoapEnvelopeClass · 0.85
ProbeResolveMatchClass · 0.85
getInstanceIdMethod · 0.45
getMessageNumberMethod · 0.45

Tested by

no test coverage detected