Most of the large applications use SOAP for data transfer between two parties. So in rails we can also integrate SOAP support. For this there are multiple gems available. One of the mostly used gem is "savon". So here we will see, how we can integrate savon with rails to handle SOAP requests:
1) Add savon gem to your Gemfile
gem 'savon', '~> 2.11.0'
2) Run the bundle to install the gem
3) Require savon where you want to use its methods:
4) After requiring savon, you need to create a client object for the target Url of the requesting service provider