'Return an array describing the method signature in the
form [rtype, ptype, ptype...] where rtype is the return data type
of the method, and ptypes are the parameter data types that the
method accepts in method argument order.
@param string name  The name of the method.
@return array result  The result.'

def methodSignature(self, name):

    methods = self._listMethods()
    for method in methods:
        if (method == name):
            rtype = None
            ptypes = []
            parsed = gettags(methods[method])
            for thing in parsed:
                if (thing[1] == 'return'):
                    rtype = thing[2]
                elif (thing[1] == 'param'):
                    ptypes.append(thing[2])
            if (rtype is None):
                raise RPCError(Faults.SIGNATURE_UNSUPPORTED)
            return ([rtype] + ptypes)
    raise RPCError(Faults.SIGNATURE_UNSUPPORTED)
