使用savon版本2 ruby​​ gem的SOAP动作

时间:2014-07-21 08:00:12

标签: ruby xml soap savon

我正在为SOAP服务的客户端工作,我使用wireshark获得了身份验证XML HTTP帖子,如何使用savon 2创建相同的帖子?

enter image description here

1 个答案:

答案 0 :(得分:1)

沿着这些方向尝试一些事情

...
client = Savon::Client.new "https://...?wsdl"
response = client.request "VerifyUserAccount" do  
  soap.input = ["VerifyUserAccount", {"xmlns" => "http://tempuri.org/uri_api_2008/service/"}]
  soap.body = {
    "Arguments" => ["Admin",1234]
    ...
  }
  ...
end  
...