有没有办法让发泡体返回SoapRequest(XML)而不发送它?创建SoapRequest而不用Suds/Python发送它们
这个想法是,我的程序的上层可以调用我的API与一个额外的布尔参数(模拟)。
If simulation == false then process the other params and send the request via suds
If simulation == false then process the other params, create the XML using suds (or any other way) and return it to the caller without sending it to the host.
我已经实现了一个MessagePlugin follwing https://fedorahosted.org/suds/wiki/Documentation#MessagePlugin,但我不能够得到XML,停止请求和XML发回给调用者...
问候
您好感谢您的答复。我已经使用另一个HttpTransport类来执行Ssl相互认证http://stackoverflow.com/questions/6277027/suds-over-https-with-cert。理论上,如果我只是用你的示例声明发送方法,它应该工作?我明天会试一试 – hzrari 2014-09-24 18:58:23
你的建议对我来说非常合适。 我刚做了一些小的修改。我将用解决方案编辑我的帖子 – hzrari 2014-09-25 11:14:52