Class: SimpleShipping::Ups::Client

Inherits:
Abstract::Client show all
Defined in:
lib/simple_shipping/ups/client.rb

Overview

Abstract class for all UPS clients. The problem with UPS is that its WSDL imports schemas. However schema imports are not supported by Savon as by v.2.1.0. See: github.com/savonrb/wasabi/issues/1 Because of this we have to manually:

1. Assign additional namespaces
2. Switch to :qualified :elemen_form_default
  (to have all requests elements prepended with namespace
   if its namespace is not specified explicitly)
3. Explicitly prepend namespace to all elements which not belong to WSDL target namespace
   i.e. UPSSecurity, Request/RequestOptions etc

Direct Known Subclasses

ShipClient, VoidClient

Method Summary

Methods inherited from Abstract::Client

#initialize, set_production_address, set_required_credentials, set_testing_address, set_wsdl_document

Constructor Details

This class inherits a constructor from SimpleShipping::Abstract::Client