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 啊 求大神解救啊