Heavy metal SOAP client
Documentation | RDoc | Mailing list | Twitter
Savon is available through Rubygems and can be installed via:
$ gem install savon
require "savon"
# create a client for your SOAP service
client = Savon.client(wsdl: "http://service.example.com?wsdl")
client.operations
# => [:create_user, :get_user, :get_all_users]
# execute a SOAP request to call the "getUser" action
response = client.call(:get_user) do
message(user_id: 1)
end
response.body
# => { :get_user_response => { :first_name => "The", :last_name => "Hoff" } }
Continue reading at savonrb.com