General Suds Plugin

python-fedex uses the following suds plugin for suds xml requests.

class fedex.base_service.GeneralSudsPlugin(**kwargs)[source]

Bases: suds.plugin.MessagePlugin

General Suds Plugin: Adds logging request and response functionality and prunes empty WSDL objects before sending.

Initializes the request and response loggers.

marshalled(context)[source]

Removes the WSDL objects that do not have a value before sending.

parsed(context)

Suds has sax parsed the received reply. Provides the plugin with the opportunity to inspect/modify the sax parsed DOM tree for the reply before it is unmarshalled. @param context: The reply context.

The I{reply} is DOM tree.

@type context: L{MessageContext}

received(context)[source]

Logs the received response.

sending(context)[source]

Logs the sent request.

unmarshalled(context)

Suds has unmarshalled the received reply. Provides the plugin with the opportunity to inspect/modify the unmarshalled reply object before it is returned. @param context: The reply context.

The I{reply} is unmarshalled suds object.

@type context: L{MessageContext}