Ruby 为什么 Ruby 用 Savon 调用 WebService 时服务器端接收不到值

fuqiang · May 28, 2013 · Last by uudui replied at December 20, 2013 · 2755 hits
require 'savon'
client = Savon.client(wsdl: 'http://localhost:8080/WebServicePro/SayHelloPort?wsdl')
client.operations
response = client.call(:say_hello) do
  message name: "fu"
end
puts response.body

结果:

{:say_hello_response=>{:return=>"Hello null", :"@xmlns:ns2"=>"http://ws.mywebservice.com/"}}

return 里为 null 啊 求大神解救啊

用 soapUI 这个软件测试一下,看看传递的参数有什么不一样

You need to Sign in before reply, if you don't have an account, please Sign up first.