I have a suds.client.Client object. I can invoke a method by hardcoding the method name, e.g.
myclient = suds.client.Client result = myclient.service.some_method(args)
I would like to be able to execute a method whose name is not known until run time. I'm sure this is quite simple, but I'm pretty new to suds and it 开发者_C百科seems to do some pretty crazy magic.
Thanks
result = getattr(myclient.service, 'some_method')(...)
精彩评论