module FedexLocationService class Request def self.call(message) client = Savon.client(wsdl: FedexLocationService.configuration.wsdl) begin @response = client.call(:search_locations, message: message) rescue Savon::SOAPFault => error @response = error #@response = { # message: error.to_hash[:fault][:detail], # body: { # search_locations_response: { # highest_severity: 'ERROR' # } # } #} end end end end