我正在为SOAP服务的客户端工作,我使用wireshark获得了身份验证XML HTTP帖子,如何使用savon 2创建相同的帖子?
答案 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
...