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)
| 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 | |
| 81 | class Encoded(RPC): |