Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在请求调用之前或之后检查请求对象?
client = Savon::Client.new do wsdl.endpoint = "https://testsoap.com/wsdlserver" end response = client.request do soap.body = {:a => 1, :b => 2, :c => { :xx => 3, :yy => 4} } end
基本上,我怎样才能看到我发送的 xml 发布数据。谢谢。
我一直用pp
require 'pp' ... pp response
显然,这在检查前不起作用。对于这种情况,我依赖 Savon 的日志记录功能。