在 Savon 1 中,我可以使用soap.input
添加xmlns
如下:
soap_client = Savon.client("http://pathtowsdl.com/a.svc?wsdl")
response = soap_client.request "AnAction" do
http.headers["soapAction"] = "AnAction"
soap.input = ["AnAction", {"xmlns" => "http://apathtosomething.com"}]
soap.body = {
"SomeAttribute" => "SomeValue"
}
end
在 Savon 2 中,我可以做,client.call(:authenticate, message_tag: :authenticationRequest)
但如何添加xmlns
到authenticationRequest
标签?