lib/soaspec/exchange_handlers/soap_handler.rb in soaspec-0.2.29 vs lib/soaspec/exchange_handlers/soap_handler.rb in soaspec-0.2.30
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
require_relative 'exchange_handler'
require_relative '../core_ext/hash'
require_relative '../errors'
require_relative 'handler_accessors'
require_relative '../interpreter'
@@ -105,11 +107,11 @@
# @param [Hash] request_parameters Parameters used to overwrite defaults in request
def make_request(request_parameters)
# Call the SOAP operation with the request XML provided
request = request_parameters(request_parameters)
begin
- client.call request.operation, request.body #request_body_params(request_parameters)
- rescue Savon::HTTPError => soap_error
+ client.call request.operation, request.body # request_body_params(request_parameters)
+ rescue Savon::HTTPError => e
soap_error
end
end
# @param [Hash] format Format of expected result