Class: FedexLocationService::Request
- Inherits:
-
Object
- Object
- FedexLocationService::Request
- Defined in:
- lib/fedex_location_service/request.rb
Class Method Summary collapse
Class Method Details
.call(message) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fedex_location_service/request.rb', line 3 def self.call() client = Savon.client(wsdl: FedexLocationService.configuration.wsdl) begin @response = client.call(:search_locations, message: ) rescue Savon::SOAPFault => error @response = error #@response = { # message: error.to_hash[:fault][:detail], # body: { # search_locations_response: { # highest_severity: 'ERROR' # } # } #} end end |