为什么savon client.call使用带有效负载而不是POST的GET请求?

时间:2017-02-27 10:05:43

标签: ruby-on-rails savon

client.call(:schedule_email_message, xml: '<soapelem />') # actually a GET request, with payload. Why not a POST request?

savon gem版本:2.11.1

1 个答案:

答案 0 :(得分:1)

你怎么知道它是一个GET?

如果您查看If condition Then RaiseEvent event1 Else RaiseEvent event2 End If 第94行(我的版本2.3.0),那么您会看到有lib/savon/operation.rb的引用。 Savon使用HTTPI gem作为您计算机上安装的任何httpclient gem的接口。 我不确定自2.11.1以来发生了什么变化。

https://github.com/savonrb/savon/blob/version2/lib/savon/operation.rb