MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / mkparam

Method mkparam

suds/bindings/binding.py:270–289  ·  view source on GitHub ↗

Builds a parameter for the specified I{method} using the parameter definition (pdef) and the specified value (object). @param method: A method name. @type method: str @param pdef: A parameter definition. @type pdef: tuple: (I{name}, L{xsd.sxbase.Schem

(self, method, pdef, object)

Source from the content-addressed store, hash-verified

268 return (faultroot, p.detail)
269
270 def mkparam(self, method, pdef, object):
271 """
272 Builds a parameter for the specified I{method} using the parameter
273 definition (pdef) and the specified value (object).
274 @param method: A method name.
275 @type method: str
276 @param pdef: A parameter definition.
277 @type pdef: tuple: (I{name}, L{xsd.sxbase.SchemaObject})
278 @param object: The parameter value.
279 @type object: any
280 @return: The parameter fragment.
281 @rtype: L{Element}
282 """
283 marshaller = self.marshaller()
284 content = \
285 Content(tag=pdef[0],
286 value=object,
287 type=pdef[1],
288 real=pdef[1].resolve())
289 return marshaller.process(content)
290
291 def mkheader(self, method, hdef, object):
292 """

Callers 1

bodycontentMethod · 0.45

Calls 4

marshallerMethod · 0.95
ContentClass · 0.90
resolveMethod · 0.45
processMethod · 0.45

Tested by

no test coverage detected