Sha256: 6836f8fc2d54923c3532a461eaae237502f25906449a229feda269a0898ea077

Contents?: true

Size: 537 Bytes

Versions: 1

Compression:

Stored size: 537 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fedex_location_service-0.4.0 lib/fedex_location_service/request.rb