Upgrading Savon to Version 2

Following is the main differences between Savon 1.0 and Savon 2.0

1. Client

1.0 client = Savon.client('soap_url')

2.0 client = Savon.client(wsdl: 'soap_url')

2. Actions

1.0 client.wsdl.soap_actions

2.0 client.operations

3. Response

1.0

1
2
3
response = client.request(:target_operation) do
  soap.body = "msg"
end

2.0 response = client.call(:target_operation, message: 'msg')

response.body

4. Reference

https://github.com/savonrb/savon http://savonrb.com/version2/requests.html