I'm reading railscast #290 that are going with savon version 1. So I tried to replace command for version 2, but I couldn't do it.
http://railscasts.com/episodes/290-soap-with-savon?view=asciicast
I replaced the commands like these.
ver1 client = Savon::Client.new("http://www.webservicex.net/uszip.asmx?WSDL")
ver2 client = Savon::Client.new(wsdl: "http://www.webservicex.net/uszip.asmx?WSDL")
ver1 client.wsdl.soap_actions
ver2 client.operations
ver1 client.request :web, :get_info_by_zip, body: { "USZIP" => "90210" }
ver2 client.call(:get_info_by_zip) # need more
How can I set namespace web
and body parameter USZIP
and 90210
?