Base Service Class

class fedex.base_service.FedexBaseService(config_obj, wsdl_name, *args, **kwargs)[source]

Bases: object

This class is the master class for all Fedex request objects. It gets all of the common SOAP objects created via suds and populates them with values from a L{FedexConfig} object, along with keyword arguments via L{__init__}.

@note: This object should never be used directly, use one of the included
sub-classes.

This constructor should only be called by children of the class. As is such, only the optional keyword arguments caught by C{**kwargs} will be documented.

@type customer_transaction_id: L{str} @keyword customer_transaction_id: A user-specified identifier to

differentiate this transaction from others. This value will be returned with the response from Fedex.
create_wsdl_object_of_type(type_name)[source]

Creates and returns a WSDL object of the specified type. :param type_name: specifies the object’s type name from WSDL.

send_request(send_function=None)[source]

Sends the assembled request on the child object. @type send_function: function reference @keyword send_function: A function reference (passed without the

parenthesis) to a function that will send the request. This allows for overriding the default function in cases such as validation requests.
ClientDetail = None

@ivar: WSDL object that holds client account details.

TransactionDetail = None

@ivar: Holds customer-specified transaction IDs.

VersionId = None

@ivar: Holds details on the version numbers of the WSDL.

WebAuthenticationDetail = None

@ivar: WSDL object that holds authentication info.

config_obj = None

@ivar: The FedexConfig object to pull auth info from.

logger = None

@ivar: Python logger instance with name ‘fedex’.

response = None

@ivar: The response from Fedex. You will want to pick what you want out here here. This object does have a __str__() method, you’ll want to print or log it to see what possible values you can pull.