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

Function constructProbe

wsdiscovery/actions/probe.py:12–21  ·  view source on GitHub ↗

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

(types, scopes)

Source from the content-addressed store, hash-verified

10
11
12def constructProbe(types, scopes):
13 "construct an envelope that represents a ``Probe`` message"
14
15 env = SoapEnvelope()
16 env.setAction(NS_ACTION_PROBE)
17 env.setTo(NS_ADDRESS_ALL)
18 env.setMessageId(uuid.uuid4().urn)
19 env.setTypes(types)
20 env.setScopes(scopes)
21 return env
22
23
24def createProbeMessage(env):

Callers 1

_sendProbeMethod · 0.85

Calls 6

setActionMethod · 0.95
setToMethod · 0.95
setMessageIdMethod · 0.95
setTypesMethod · 0.95
setScopesMethod · 0.95
SoapEnvelopeClass · 0.85

Tested by

no test coverage detected