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

Method body

suds/wsdl.py:610–628  ·  view source on GitHub ↗

add the input/output body properties

(self, definitions, body, root)

Source from the content-addressed store, hash-verified

608 self.operations[op.name] = op
609
610 def body(self, definitions, body, root):
611 """ add the input/output body properties """
612 if root is None:
613 body.use = 'literal'
614 body.namespace = definitions.tns
615 body.parts = ()
616 return
617 parts = root.get('parts')
618 if parts is None:
619 body.parts = ()
620 else:
621 body.parts = re.split(r'[\s,]', parts)
622 body.use = root.get('use', default='literal')
623 ns = root.get('namespace')
624 if ns is None:
625 body.namespace = definitions.tns
626 else:
627 prefix = root.findPrefix(ns, 'b0')
628 body.namespace = (prefix, ns)
629
630 def header(self, definitions, parent, root):
631 """ add the input/output header properties """

Callers 1

add_operationsMethod · 0.95

Calls 3

findPrefixMethod · 0.80
getMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected