【发布时间】:2013-08-21 21:03:49
【问题描述】:
我需要知道 SOAPpy 做了什么请求。有谁知道怎么做?
【问题讨论】:
我需要知道 SOAPpy 做了什么请求。有谁知道怎么做?
【问题讨论】:
SOAPpy 有一个配置对象,您可以使用它来设置不同的属性。要查看请求,您可以使用 dumpSOAPOut 或 dumpSOAPIn 甚至一般的 debug 选项。
对于 SOAP 代理,您可以这样设置:
proxy = SOAPProxy(...)
proxy.config.dumpSOAPOut = 1
proxy.config.dumpSOAPIn = 1
proxy.config.debug = 1
.. 对于 WSDL 代理,您可以像这样使用它:
client = WSDL.Proxy(...)
client.soapproxy.config.dumpSOAPOut = 1
client.soapproxy.config.dumpSOAPIn = 1
client.soapproxy.config.debug = 1
在此处查看您可以在配置中设置的一些额外选项:http://soappy.ooz.ie/p/config.html
【讨论】: