WSDL client container class. Given an open wsdl file-like object, instantiating a Client builds SOAP types and service calls using a Factory, and provides access to them via the instance’s type and service attributes.
Parameters: |
|
---|
Given an InputMessage, wrap in in a SOAP envelope and produce an Element.
Handle an exception raised by a method call that may be a SOAP Fault.
Handle a seemingly successful response.
Parse the response xml and return the soap body and header.
Raise a SOAP Fault if one is found in the response body.
Send the SOAP request for the given method. Don’t call this directly (use the methods attached to a client’s service attribute instead), but do override it in a subclass to mock a service or change how a request is sent.
SOAP Fault exception. The method that raised the fault, the faultcode, and faultstring are available as attributes of the exception.
Definition of a single SOAP method, including the location, action, name and input and output classes.
TODO: add a useful repr
Minimal wrapper for untyped extra attributes.
Factory for runtime type lookups. When given an ‘anyType’ element, the client must look up the type to deserialize to from the type given by the element, in some attribute with a local name of ‘type’.
Return an empty instance. Like simple types, an empty anyType is just None.
AttributeDescriptors are used as properties of complex types each one models an attribute or element that is part of the complex type. The descriptor mediates access to the type instance, which holds the value.
Base class for SOAP complexTypes, at least the ones that look like classes. For each complexType in a WSDL document, the Factory creates a ComplexType subclass with the appropriate children and attributes.
Input message formatter for non-wrapped document literal messages. The main difference between this type of message and wrapped types is that there may be > 1 input part, and they are not all necessarily contained in an element with the same name as the operation.
Input message formatter that formats a document literal message with wrapper. This means that the body of the message is simply the serialized xml of the single message part, which must be a complexType element with the same name as the operation.
Base class for xml elements and attributes
Return an empty instance of this class.
Convert value from xml. Override in typed subclasses to do type conversion.
Element representing a SOAP Enum. Subclasses have a defined set of allowed values.
WSDL type factory.
Generate classes and methods for types and bindings defined in the wsdl file. Classes and methods become attributes of the type and service containers of the given client instance, respectively.
Resolve a class name to a class.
Base class for input message formatters
Base of the marshalling chain for input messages. Call this with positional or keyword arguments appropriate to the message, and get back a formatter whose toxml() method will yield xml Elements for inclusion in a SOAP message.
Pseudo-closure for a single SOAP method call.
Exception thrown when a response is received that does not contain SOAP xml. The full response is available as the response attribute of the exception.
Unmarshaller for SOAP responses. This class probably needs subclasses for all of the different binding styles.
Input message formatter for rpc/enc style. A top-level element named after the operation wraps each input part, which may be a complex or simple type. Each part’s xml includes an xsi:type attribute with the value being the namespaced type of the element.
Input message formatting in the RPC literal style. A top-level element named after the operation wraps each input part, which may be a complexType or simple type.
Bucket that holds service methods. Attached to client as service attribute.
alias of MethodCall
Base class mixin for simple types. Allows simple types to be set by passing xml elements to their constructors.
Adapt incoming arguments – which may include xml Elements – to the argument list expected by the native class of this type.
Return an empty instance of this class. Empty SimpleTypes are always None.
Metaclass that registers each simple type in the Element typemap.
Bucket that holds types defined in WSDL. Attached to client as type attribute.