【发布时间】:2014-09-24 17:37:15
【问题描述】:
有没有办法让 suds 返回 SoapRequest(在 XML 中)而不发送它?
这个想法是我的程序的上层可以使用额外的布尔参数(模拟)调用我的 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.
我已经在 https://fedorahosted.org/suds/wiki/Documentation#MessagePlugin 之后实现了 MessagePlugin,但我无法获取 XML、停止请求并将 XML 发送回调用者...
问候
【问题讨论】: