| | |
- DefaultReader
- ParsedSoap
class DefaultReader |
| |
ExpatReaderClass |
| |
Static methods defined here:
- fromStream = parse(file, namespaces=1)
- Parse a document, returning the resulting Document node.
'file' may be either a file name or an open file object.
- fromString = parseString(string, namespaces=1)
- Parse a document from a string, returning the resulting
Document node.
|
class ParsedSoap |
| |
A Parsed SOAP object.
Convert the text to a DOM tree and parse SOAP elements.
Instance data:
reader -- the DOM reader
dom -- the DOM object
ns_cache -- dictionary (by id(node)) of namespace dictionaries
id_cache -- dictionary (by XML ID attr) of elements
envelope -- the node holding the SOAP Envelope
header -- the node holding the SOAP Header (or None)
body -- the node holding the SOAP Body
body_root -- the serialization root in the SOAP Body
data_elements -- list of non-root elements in the SOAP Body
trailer_elements -- list of elements following the SOAP body |
| |
Methods defined here:
- Backtrace(self, elt)
- Return a human-readable "backtrace" from the document root to
the specified element.
- FindLocalHREF(self, href, elt, headers=1)
- Find a local HREF in the data elements.
- GetDomAndReader(self)
- Returns a tuple containing the dom and reader objects. (dom, reader)
Unless keepdom is true, the dom and reader objects will go out of scope
when the ParsedSoap instance is deleted. If keepdom is true, the reader
object is needed to properly clean up the dom tree with
reader.releaseNode(dom).
- GetElementNSdict(self, elt)
- Get a dictionary of all the namespace attributes for the indicated
element. The dictionaries are cached, and we recurse up the tree
as necessary.
- GetMyHeaderElements(self, actorlist=None)
- Return a list of all elements intended for these actor(s).
- IsAFault(self)
- Is this a fault message?
- Parse(self, how)
- Parse the message.
- ParseHeaderElements(self, ofwhat)
- Returns a dictionary of pyobjs.
ofhow -- list of typecodes w/matching nspname/pname to the header_elements.
- ResolveHREF(self, uri, tc, **keywords)
- WhatActorsArePresent(self)
- Return a list of URI's of all the actor attributes found in
the header. The special actor "next" is ignored.
- WhatMustIUnderstand(self)
- Return a list of (uri,localname) tuples for all elements in the
header that have mustUnderstand set.
- __del__(self)
- __init__(self, input, readerclass=None, keepdom=False, trailers=False, resolver=None, envelope=True, **kw)
- Initialize.
Keyword arguments:
trailers -- allow trailer elments (default is zero)
resolver -- function (bound method) to resolve URI's
readerclass -- factory class to create a reader
keepdom -- do not release the DOM
envelope -- look for a SOAP envelope.
Data and other attributes defined here:
- defaultReaderClass = <class parse.DefaultReader>
- ExpatReaderClass
| |