writer
index
/home/groups/p/py/pywebsvcs/src/ZSI/writer.py

SOAP message serialization.

 
Modules
       
types

 
Classes
       
SoapWriter

 
class SoapWriter
    SOAP output formatter.
Instance Data:
    memo -- memory for id/href 
    envelope -- add Envelope?
    encodingStyle -- 
    header -- add SOAP Header?
    outputclass -- ElementProxy class.
 
  Methods defined here:
AddCallback(self, func, *arglist)
Add a callback function and argument list to be invoked before
closing off the SOAP Body.
Backtrace(self, elt)
Return a human-readable "backtrace" from the document root to
the specified element.
Forget(self, obj)
Forget we've seen this object.
Known(self, obj)
Seen this object (known by its id()?  Return 1 if so,
otherwise add it to our memory and return 0.
ReservedNS(self, prefix, uri)
Is this namespace (prefix,uri) reserved by us?
__del__(self)
__init__(self, envelope=True, encodingStyle=None, header=True, nsdict={}, outputclass=None, **kw)
Initialize.
__str__(self)
close(self)
Invoke all the callbacks, and close off the SOAP message.
getSOAPHeader(self)
serialize(self, pyobj, typecode=None, root=None, header_pyobjs=(), **kw)
Serialize a Python object to the output stream.
pyobj -- python instance to serialize in body.
typecode -- typecode describing body 
root -- SOAP-ENC:root
header_pyobjs -- list of pyobj for soap header inclusion, each
   instance must specify the typecode attribute.
serialize_header(self, pyobj, typecode=None, **kw)
Serialize a Python object in SOAP-ENV:Header, make
sure everything in Header unique (no #href).  Must call
serialize first to create a document.
 
Parameters: 
    pyobjs -- instances to serialize in SOAP Header
    typecode -- default typecode
writeNSdict(self, nsdict)
Write a namespace dictionary, taking care to not clobber the
standard (or reserved by us) prefixes.

 
Data
        ZSI_SCHEMA_URI = 'http://www.zolera.com/schemas/ZSI/'