Package ndg :: Package soap :: Module etree :: Class SOAPFault
[hide private]

Class SOAPFault

source code


Extend SOAP Fault for ElementTree parsing and serialisation

Instance Methods [hide private]
 
__init__(self, *arg, **kw)
Initialise attributes
source code
 
_setFaultCode(self, value)
Override to enable ns prefix to be inferred if not added in already
source code
 
create(self)
Create Fault ElementTree element
source code
 
parse(self, source)
Parse SOAPFault element
source code
 
serialize(self)
Serialise element tree into string
source code
 
prettyPrint(self)
Basic pretty printing separating each element on to a new line
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]

Inherited from ETreeSOAPExtensions (private): _prettyPrint

Static Methods [hide private]

Inherited from ETreeSOAPExtensions (private): _parse, _serialize

Class Variables [hide private]
  DEFAULT_ELEMENT_NAME = QName(SOAPFaultBase.DEFAULT_ELEMENT_NS,...
  FAULT_CODE_ELEMENT_NAME = QName(SOAPFaultBase.DEFAULT_ELEMENT_...
  FAULT_STRING_ELEMENT_NAME = QName(SOAPFaultBase.DEFAULT_ELEMEN...
  FAULT_ACTOR_ELEMENT_NAME = QName(SOAPFaultBase.DEFAULT_ELEMENT...
  DETAIL_ELEMENT_NAME = QName(SOAPFaultBase.DEFAULT_ELEMENT_NS, ...

Inherited from SOAPFaultBase: CLIENT_FAULT_CODE, DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NS, DEFAULT_ELEMENT_NS_PREFIX, DETAIL_ELEMENT_LOCAL_NAME, FAULT_ACTOR_ELEMENT_LOCAL_NAME, FAULT_CODES, FAULT_CODE_ELEMENT_LOCAL_NAME, FAULT_STRING_ELEMENT_LOCAL_NAME, MUST_UNDERSTAND_FAULT_CODE, SERVER_FAULT_CODE, VERSION_MISMATCH_CODE

Inherited from SOAPObject: DEFAULT_NS, ELEMENT_PREFIX, SOAP11_NS, SOAP12_NS

Properties [hide private]
  faultCode
Fault code

Inherited from SOAPFaultBase: detail, faultActor, faultString

Inherited from ETreeSOAPExtensions: elem, qname

Inherited from object: __class__

Method Details [hide private]

__init__(self, *arg, **kw)
(Constructor)

source code 

Initialise attributes

Overrides: object.__init__
(inherited documentation)

_setFaultCode(self, value)

source code 

Override to enable ns prefix to be inferred if not added in already

Overrides: SOAPFaultBase._setFaultCode

create(self)

source code 

Create Fault ElementTree element

Overrides: SOAPObject.create

parse(self, source)

source code 

Parse SOAPFault element

Overrides: SOAPObject.parse

serialize(self)

source code 

Serialise element tree into string

Overrides: SOAPObject.serialize

prettyPrint(self)

source code 

Basic pretty printing separating each element on to a new line

Overrides: SOAPObject.prettyPrint

Class Variable Details [hide private]

DEFAULT_ELEMENT_NAME

Value:
QName(SOAPFaultBase.DEFAULT_ELEMENT_NS, tag= SOAPFaultBase.DEFAULT_ELE\
MENT_LOCAL_NAME, prefix= SOAPFaultBase.DEFAULT_ELEMENT_NS_PREFIX)

FAULT_CODE_ELEMENT_NAME

Value:
QName(SOAPFaultBase.DEFAULT_ELEMENT_NS, tag= SOAPFaultBase.FAULT_CODE_\
ELEMENT_LOCAL_NAME, prefix= SOAPFaultBase.DEFAULT_ELEMENT_NS_PREFIX)

FAULT_STRING_ELEMENT_NAME

Value:
QName(SOAPFaultBase.DEFAULT_ELEMENT_NS, tag= SOAPFaultBase.FAULT_STRIN\
G_ELEMENT_LOCAL_NAME, prefix= SOAPFaultBase.DEFAULT_ELEMENT_NS_PREFIX)

FAULT_ACTOR_ELEMENT_NAME

Value:
QName(SOAPFaultBase.DEFAULT_ELEMENT_NS, tag= SOAPFaultBase.FAULT_ACTOR\
_ELEMENT_LOCAL_NAME, prefix= SOAPFaultBase.DEFAULT_ELEMENT_NS_PREFIX)

DETAIL_ELEMENT_NAME

Value:
QName(SOAPFaultBase.DEFAULT_ELEMENT_NS, tag= SOAPFaultBase.DETAIL_ELEM\
ENT_LOCAL_NAME, prefix= SOAPFaultBase.DEFAULT_ELEMENT_NS_PREFIX)

Property Details [hide private]

faultCode

Fault code

Get Method:
unreachable._getFaultCode(self)
Set Method:
_setFaultCode(self, value) - Override to enable ns prefix to be inferred if not added in already