Difference between revisions of "Python - ZSI Module"

From PeformIQ Upgrade
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
Back to [Python]
Back to [[Python]]
 
\\


= Overview =
= Overview =


[http://pywebsvcs.sourceforge.net/zsi.html Zolera SOAP Infrastructure] ([http://pywebsvcs.sourceforge.net/zsi.html ZSI]) is one of a number of Python modules which support SOAP capabilities within Python scripts.  Check out the [http://pywebsvcs.sourceforge.net/ Python Web Services page] at [http://www.sourceforge.net SourceForge].
[http://pywebsvcs.sourceforge.net/ Zolera SOAP Infrastructure] ([http://pywebsvcs.sourceforge.net/zsi.html ZSI]) is one of a number of Python modules which support SOAP capabilities within Python scripts.  Check out the [http://pywebsvcs.sourceforge.net/ Python Web Services page] at [http://www.sourceforge.net SourceForge].


See:
See:


* [http://pywebsvcs.sourceforge.net/zsi.html Overview]
* [http://pywebsvcs.sourceforge.net/apidocs/ZSI/ API documentation]
* [http://pywebsvcs.sourceforge.net/apidocs/ZSI/ API documentation]
* [http://wiki.python.org/moin/ZSI Python Wiki entry]
* [http://wiki.python.org/moin/ZSI Python Wiki entry]
Line 268: Line 267:


Back to [[Python]]
Back to [[Python]]
[[Category:Python]][[Category:SOAP]]

Latest revision as of 08:27, 13 January 2009

Back to Python

Overview

Zolera SOAP Infrastructure (ZSI) is one of a number of Python modules which support SOAP capabilities within Python scripts. Check out the Python Web Services page at SourceForge.

See:

References and Examples

See:

__dict__

>>> import pprint
>>> p = pprint(3)
>>> p.pprint(ZSI.__dict__)
{'EMPTY_NAMESPACE': None,
 'EvaluateException': <class 'ZSI.EvaluateException'>,
 'Fault': <class 'ZSI.fault.Fault'>,
 'FaultException': <class 'ZSI.FaultException'>,
 'FaultFromActor': <function FaultFromActor at 0x7fcdd994>,
 'FaultFromException': <function FaultFromException at 0x7fcdda04>,
 'FaultFromFaultMessage': <function FaultFromFaultMessage at 0x7fcdda3c>,
 'FaultFromNotUnderstood': <function FaultFromNotUnderstood at 0x7fcdd5a4>,
 'FaultFromZSIException': <function FaultFromZSIException at 0x7fcdd9cc>,
 'ParseException': <class 'ZSI.ParseException'>,
 'ParsedSoap': <class ZSI.parse.ParsedSoap at 0x7fd483ec>,
 'SoapWriter': <class ZSI.writer.SoapWriter at 0x7fd3e71c>,
 'TC': <module 'ZSI.TC' from '/usr/lib/python2.5/site-packages/ZSI/TC.pyc'>,
 'TCapache': <module 'ZSI.TCapache' from '/usr/lib/python2.5/site-packages/ZSI/TCapache.pyc'>,
 'TCcompound': <module 'ZSI.TCcompound' from '/usr/lib/python2.5/site-packages/ZSI/TCcompound.pyc'>,
 'TCnumbers': <module 'ZSI.TCnumbers' from '/usr/lib/python2.5/site-packages/ZSI/TCnumbers.pyc'>,
 'TCtimes': <module 'ZSI.TCtimes' from '/usr/lib/python2.5/site-packages/ZSI/TCtimes.pyc'>,
 'UNICODE_ENCODING': 'utf-8',
 'Version': <function Version at 0x7fd4480c>,
 'WSActionException': <class 'ZSI.WSActionException'>,
 'ZSIException': <class 'ZSI.ZSIException'>,
 'ZSI_SCHEMA_URI': 'http://www.zolera.com/schemas/ZSI/',
 '_Node': <class xml.dom.Node at 0x7ff3338c>,
 '_SCHEMA': <class xml.ns.SCHEMA at 0x7feff4ac>,
 '_SOAP': <class xml.ns.SOAP at 0x7feff41c>,
 '_XMLNS': <class xml.ns.XMLNS at 0x7feff3bc>,
 '__builtins__': {'ArithmeticError': <type 'exceptions.ArithmeticError'>,
                  'AssertionError': <type 'exceptions.AssertionError'>,
                  'AttributeError': <type 'exceptions.AttributeError'>,
                  'BaseException': <type 'exceptions.BaseException'>,
                  'DeprecationWarning': <type 'exceptions.DeprecationWarning'>,
                  'EOFError': <type 'exceptions.EOFError'>,
                  'Ellipsis': Ellipsis,
                  'EnvironmentError': <type 'exceptions.EnvironmentError'>,
                  'Exception': <type 'exceptions.Exception'>,
                  'False': False,
                  'FloatingPointError': <type 'exceptions.FloatingPointError'>,
                  'FutureWarning': <type 'exceptions.FutureWarning'>,
                  'GeneratorExit': <type 'exceptions.GeneratorExit'>,
                  'IOError': <type 'exceptions.IOError'>,
                  'ImportError': <type 'exceptions.ImportError'>,
                  'ImportWarning': <type 'exceptions.ImportWarning'>,
                  'IndentationError': <type 'exceptions.IndentationError'>,
                  'IndexError': <type 'exceptions.IndexError'>,
                  'KeyError': <type 'exceptions.KeyError'>,
                  'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>,
                  'LookupError': <type 'exceptions.LookupError'>,
                  'MemoryError': <type 'exceptions.MemoryError'>,
                  'NameError': <type 'exceptions.NameError'>,
                  'None': None,
                  'NotImplemented': NotImplemented,
                  'NotImplementedError': <type 'exceptions.NotImplementedError'>,
                  'OSError': <type 'exceptions.OSError'>,
                  'OverflowError': <type 'exceptions.OverflowError'>,
                  'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>,
                  'ReferenceError': <type 'exceptions.ReferenceError'>,
                  'RuntimeError': <type 'exceptions.RuntimeError'>,
                  'RuntimeWarning': <type 'exceptions.RuntimeWarning'>,
                  'StandardError': <type 'exceptions.StandardError'>,
                  'StopIteration': <type 'exceptions.StopIteration'>,
                  'SyntaxError': <type 'exceptions.SyntaxError'>,
                  'SyntaxWarning': <type 'exceptions.SyntaxWarning'>,
                  'SystemError': <type 'exceptions.SystemError'>,
                  'SystemExit': <type 'exceptions.SystemExit'>,
                  'TabError': <type 'exceptions.TabError'>,
                  'True': True,
                  'TypeError': <type 'exceptions.TypeError'>,
                  'UnboundLocalError': <type 'exceptions.UnboundLocalError'>,
                  'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>,
                  'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>,
                  'UnicodeError': <type 'exceptions.UnicodeError'>,
                  'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>,
                  'UnicodeWarning': <type 'exceptions.UnicodeWarning'>,
                  'UserWarning': <type 'exceptions.UserWarning'>,
                  'ValueError': <type 'exceptions.ValueError'>,
                  'Warning': <type 'exceptions.Warning'>,
                  'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>,
                  '__debug__': True,
                  '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.",
                  '__import__': <built-in function __import__>,
                  '__name__': '__builtin__',
                  'abs': <built-in function abs>,
                  'all': <built-in function all>,
                  'any': <built-in function any>,
                  'apply': <built-in function apply>,
                  'basestring': <type 'basestring'>,
                  'bool': <type 'bool'>,
                  'buffer': <type 'buffer'>,
                  'callable': <built-in function callable>,
                  'chr': <built-in function chr>,
                  'classmethod': <type 'classmethod'>,
                  'cmp': <built-in function cmp>,
                  'coerce': <built-in function coerce>,
                  'compile': <built-in function compile>,
                  'complex': <type 'complex'>,
                  'copyright': Copyright (c) 2001-2007 Python Software Foundation.
All Rights Reserved.

Copyright (c) 2000 BeOpen.com.
All Rights Reserved.

Copyright (c) 1995-2001 Corporation for National Research Initiatives.
All Rights Reserved.

Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.
All Rights Reserved.,
                  'credits':     Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands
    for supporting Python development.  See www.python.org for more information.,
                  'delattr': <built-in function delattr>,
                  'dict': <type 'dict'>,
                  'dir': <built-in function dir>,
                  'divmod': <built-in function divmod>,
                  'enumerate': <type 'enumerate'>,
                  'eval': <built-in function eval>,
                  'execfile': <built-in function execfile>,
                  'exit': Use exit() or Ctrl-D (i.e. EOF) to exit,
                  'file': <type 'file'>,
                  'filter': <built-in function filter>,
                  'float': <type 'float'>,
                  'frozenset': <type 'frozenset'>,
                  'getattr': <built-in function getattr>,
                  'globals': <built-in function globals>,
                  'hasattr': <built-in function hasattr>,
                  'hash': <built-in function hash>,
                  'help': Type help() for interactive help, or help(object) for help about object.,
                  'hex': <built-in function hex>,
                  'id': <built-in function id>,
                  'input': <built-in function input>,
                  'int': <type 'int'>,
                  'intern': <built-in function intern>,
                  'isinstance': <built-in function isinstance>,
                  'issubclass': <built-in function issubclass>,
                  'iter': <built-in function iter>,
                  'len': <built-in function len>,
                  'license': Type license() to see the full license text,
                  'list': <type 'list'>,
                  'locals': <built-in function locals>,
                  'long': <type 'long'>,
                  'map': <built-in function map>,
                  'max': <built-in function max>,
                  'min': <built-in function min>,
                  'object': <type 'object'>,
                  'oct': <built-in function oct>,
                  'open': <built-in function open>,
                  'ord': <built-in function ord>,
                  'pow': <built-in function pow>,
                  'property': <type 'property'>,
                  'quit': Use quit() or Ctrl-D (i.e. EOF) to exit,
                  'range': <built-in function range>,
                  'raw_input': <built-in function raw_input>,
                  'reduce': <built-in function reduce>,
                  'reload': <built-in function reload>,
                  'repr': <built-in function repr>,
                  'reversed': <type 'reversed'>,
                  'round': <built-in function round>,
                  'set': <type 'set'>,
                  'setattr': <built-in function setattr>,
                  'slice': <type 'slice'>,
                  'sorted': <built-in function sorted>,
                  'staticmethod': <type 'staticmethod'>,
                  'str': <type 'str'>,
                  'sum': <built-in function sum>,
                  'super': <type 'super'>,
                  'tuple': <type 'tuple'>,
                  'type': <type 'type'>,
                  'unichr': <built-in function unichr>,
                  'unicode': <type 'unicode'>,
                  'vars': <built-in function vars>,
                  'xrange': <type 'xrange'>,
                  'zip': <built-in function zip>},
 '__doc__': 'ZSI:  Zolera Soap Infrastructure.\n\nCopyright 2001, Zolera Systems, Inc.  All Rights Reserved.\n',
 '__file__': '/usr/lib/python2.5/site-packages/ZSI/__init__.pyc',
 '__name__': 'ZSI',
 '__path__': ['/usr/lib/python2.5/site-packages/ZSI'],
 '_attrs': <function <lambda> at 0x7fd443ac>,
 '_backtrace': <function _backtrace at 0x7fd44764>,
 '_child_elements': <function <lambda> at 0x7fd4441c>,
 '_children': <function <lambda> at 0x7fd443e4>,
 '_copyright': 'ZSI:  Zolera Soap Infrastructure.\n\nCopyright 2001, Zolera Systems, Inc.  All Rights Reserved.\nCopyright 2002-2003, Rich Salz. All Rights Reserved.\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the "Software"),\nto deal in the Software without restriction, including without limitation\nthe rights to use, copy, modify, merge, publish, distribute, and/or\nsell copies of the Software, and to permit persons to whom the Software\nis furnished to do so, provided that the above copyright notice(s) and\nthis permission notice appear in all copies of the Software and that\nboth the above copyright notice(s) and this permission notice appear in\nsupporting documentation.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT\nOF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS\nINCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT\nOR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\nOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE\nOR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE\nOR PERFORMANCE OF THIS SOFTWARE.\n\nExcept as contained in this notice, the name of a copyright holder\nshall not be used in advertising or otherwise to promote the sale, use\nor other dealings in this Software without prior written authorization\nof the copyright holder.\n\n\nPortions are also:\n\nCopyright (c) 2003, The Regents of the University of California,\nthrough Lawrence Berkeley National Laboratory (subject to receipt of\nany required approvals from the U.S. Dept. of Energy). All rights\nreserved. Redistribution and use in source and binary forms, with or\nwithout modification, are permitted provided that the following\nconditions are met:\n\n(1) Redistributions of source code must retain the above copyright\nnotice, this list of conditions and the following disclaimer.\n(2) Redistributions in binary form must reproduce the above copyright\nnotice, this list of conditions and the following disclaimer in the\ndocumentation and/or other materials provided with the distribution.\n(3) Neither the name of the University of California, Lawrence Berkeley\nNational Laboratory, U.S. Dept. of Energy nor the names of its contributors\nmay be used to endorse or promote products derived from this software without\nspecific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\nTO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS\nBE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\nCONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE\nGOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\nHOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\nLIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\nOUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGE.\n\nYou are under no obligation whatsoever to provide any bug fixes,\npatches, or upgrades to the features, functionality or performance of\nthe source code ("Enhancements") to anyone; however, if you choose to\nmake your Enhancements available either publicly, or directly to\nLawrence Berkeley National Laboratory, without imposing a separate\nwritten license agreement for such Enhancements, then you hereby grant\nthe following license: a non-exclusive, royalty-free perpetual license\nto install, use, modify, prepare derivative works, incorporate into\nother computer software, distribute, and sublicense such Enhancements\nor derivative works thereof, in binary and source code form.\n\n\nFor wstools also:\n\nZope Public License (ZPL) Version 2.0\n-----------------------------------------------\n\nThis software is Copyright (c) Zope Corporation (tm) and\nContributors. All rights reserved.\n\nThis license has been certified as open source. It has also\nbeen designated as GPL compatible by the Free Software\nFoundation (FSF).\n\nRedistribution and use in source and binary forms, with or\nwithout modification, are permitted provided that the\nfollowing conditions are met:\n\n1. Redistributions in source code must retain the above\n   copyright notice, this list of conditions, and the following\n   disclaimer.\n\n2. Redistributions in binary form must reproduce the above\n   copyright notice, this list of conditions, and the following\n   disclaimer in the documentation and/or other materials\n   provided with the distribution.\n\n3. The name Zope Corporation (tm) must not be used to\n   endorse or promote products derived from this software\n   without prior written permission from Zope Corporation.\n\n4. The right to distribute this software or to use it for\n   any purpose does not give you the right to use Servicemarks\n   (sm) or Trademarks (tm) of Zope Corporation. Use of them is\n   covered in a separate agreement (see\n   http://www.zope.com/Marks).\n\n5. If any files are modified, you must cause the modified\n   files to carry prominent notices stating that you changed\n   the files and the date of any change.\n\nDisclaimer\n\n  THIS SOFTWARE IS PROVIDED BY ZOPE CORPORATION ``AS IS\'\'\n  AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT\n  NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY\n  AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN\n  NO EVENT SHALL ZOPE CORPORATION OR ITS CONTRIBUTORS BE\n  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\n  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n  HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE\n  OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH\n  DAMAGE.\n\n\nThis software consists of contributions made by Zope\nCorporation and many individuals on behalf of Zope\nCorporation.  Specific attributions are listed in the\naccompanying credits file.\n',
 '_empty_nsuri_list': [None],
 '_find_arraytype': <function <lambda> at 0x7fd44454>,
 '_find_attr': <function _find_attr at 0x7fd444c4>,
 '_find_attrNS': <function _find_attrNS at 0x7fd444fc>,
 '_find_attrNodeNS': <function _find_attrNodeNS at 0x7fd44534>,
 '_find_default_namespace': <function <lambda> at 0x7fd4464c>,
 '_find_encstyle': <function <lambda> at 0x7fd4448c>,
 '_find_href': <function <lambda> at 0x7fd4456c>,
 '_find_type': <function <lambda> at 0x7fd445dc>,
 '_find_xmlns_prefix': <function <lambda> at 0x7fd44614>,
 '_find_xsi_attr': <function <lambda> at 0x7fd445a4>,
 '_floattypes': [<type 'float'>],
 '_get_element_nsuri_name': <function <lambda> at 0x7fd44684>,
 '_get_idstr': <function _get_idstr at 0x7fd4479c>,
 '_get_postvalue_from_absoluteURI': <function _get_postvalue_from_absoluteURI at 0x7fd447d4>,
 '_inttypes': [<type 'int'>, <type 'long'>],
 '_is_element': <function <lambda> at 0x7fd446bc>,
 '_resolve_prefix': <function _resolve_prefix at 0x7fd446f4>,
 '_seqtypes': [<type 'tuple'>, <type 'list'>],
 '_stringtypes': [<type 'str'>, <type 'unicode'>],
 '_types': <module 'types' from '/usr/lib/python2.5/types.pyc'>,
 '_valid_encoding': <function _valid_encoding at 0x7fd4472c>,
 'fault': <module 'ZSI.fault' from '/usr/lib/python2.5/site-packages/ZSI/fault.pyc'>,
 'i': <type 'unicode'>,
 'parse': <module 'ZSI.parse' from '/usr/lib/python2.5/site-packages/ZSI/parse.pyc'>,
 'pyclass': <class ZSI.TCnumbers.FPdouble at 0x7fcc2e9c>,
 'schema': <module 'ZSI.schema' from '/usr/lib/python2.5/site-packages/ZSI/schema.pyc'>,
 'version': <module 'ZSI.version' from '/usr/lib/python2.5/site-packages/ZSI/version.pyc'>,
 'writer': <module 'ZSI.writer' from '/usr/lib/python2.5/site-packages/ZSI/writer.pyc'>,
 'wstools': <module 'ZSI.wstools' from '/usr/lib/python2.5/site-packages/ZSI/wstools/__init__.pyc'>}
>>>

__doc__

>>> print ZSI.__builtins__.__doc__
dict() -> new empty dictionary.
dict(mapping) -> new dictionary initialized from a mapping object's
    (key, value) pairs.
dict(seq) -> new dictionary initialized as if via:
    d = {}
    for k, v in seq:
        d[k] = v
dict(**kwargs) -> new dictionary initialized with the name=value pairs
    in the keyword argument list.  For example:  dict(one=1, two=2)

Problems

Stuff

Back to Python