def invoke(self, args, kwargs):
simulation = kwargs[self.injkey]<EOL>msg = simulation.get('<STR_LIT>')<EOL>reply = simulation.get('<STR_LIT>')<EOL>fault = simulation.get('<STR_LIT>')<EOL>if msg is None:<EOL><INDENT>if reply is not None:<EOL><INDENT>return self.__reply(reply, args, kwargs)<EOL><DEDENT>if fault is not None:<EOL><INDENT>return self.__fault(fault)<EOL><DEDENT>raise Exception('<STR_LIT>')<EOL><DEDENT>sax = Parser()<EOL>msg = sax.parse(string=msg)<EOL>return self.send(msg)<EOL>
Send the required soap message to invoke the specified method
@param args: A list of args for the method invoked.
@type args: list
@param kwargs: Named (keyword) args for the method invoked.
@type kwargs: dict
@return: The result of the method invocation.
@rtype: I{builtin} or I{subclass of} L{Object}