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 invocat
(self, args, kwargs)
| 596 | self.cookiejar = CookieJar() |
| 597 | |
| 598 | def invoke(self, args, kwargs): |
| 599 | """ |
| 600 | Send the required soap message to invoke the specified method |
| 601 | @param args: A list of args for the method invoked. |
| 602 | @type args: list |
| 603 | @param kwargs: Named (keyword) args for the method invoked. |
| 604 | @type kwargs: dict |
| 605 | @return: The result of the method invocation. |
| 606 | @rtype: I{builtin}|I{subclass of} L{Object} |
| 607 | """ |
| 608 | timer = metrics.Timer() |
| 609 | timer.start() |
| 610 | result = None |
| 611 | binding = self.method.binding.input |
| 612 | soapenv = binding.get_message(self.method, args, kwargs) |
| 613 | timer.stop() |
| 614 | metrics.log.debug("message for '%s' created: %s", |
| 615 | self.method.name, |
| 616 | timer) |
| 617 | timer.start() |
| 618 | result = self.send(soapenv) |
| 619 | timer.stop() |
| 620 | metrics.log.debug("method '%s' invoked: %s", |
| 621 | self.method.name, |
| 622 | timer) |
| 623 | return result |
| 624 | |
| 625 | def send(self, soapenv): |
| 626 | """ |
nothing calls this directly
no test coverage detected