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

Method method

suds/bindings/rpc.py:65–78  ·  view source on GitHub ↗

Get the document root. For I{rpc/(literal|encoded)}, this is the name of the method qualifed by the schema tns. @param method: A service method. @type method: I{service.Method} @return: A root element. @rtype: L{Element}

(self, method)

Source from the content-addressed store, hash-verified

63 return body[0].children
64
65 def method(self, method):
66 """
67 Get the document root. For I{rpc/(literal|encoded)}, this is the
68 name of the method qualifed by the schema tns.
69 @param method: A service method.
70 @type method: I{service.Method}
71 @return: A root element.
72 @rtype: L{Element}
73 """
74 ns = method.soap.input.body.namespace
75 if ns[0] is None:
76 ns = ('ns0', ns[1])
77 method = Element(method.name, ns=ns)
78 return method
79
80
81class Encoded(RPC):

Callers 1

bodycontentMethod · 0.95

Calls 1

ElementClass · 0.90

Tested by

no test coverage detected