Module Expr Str ImportFrom alias ImportFrom alias Import alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults vararg body Expr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Num Str decorator_list decorator_list FunctionDef arguments args defaults body ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A 
An example of an XML-RPC server in Twisted.

Usage:
    $ python xmlrpc.py

An example session (assuming the server is running):

    >>> import xmlrpclib
    >>> s = xmlrpclib.Server('http://localhost:7080/')
    >>> s.echo("lala")
    ['lala']
    >>> s.echo("lala", 1)
    ['lala', 1]
    >>> s.echo("lala", 4)
    ['lala', 4]
    >>> s.echo("lala", 4, 3.4)
    ['lala', 4, 3.3999999999999999]
    >>> s.echo("lala", 4, [1, 2])
    ['lala', 4, [1, 2]]

 twisted.web xmlrpc twisted.internet defer N/A xmlrpclib Echoer N/A N/A xmlrpc XMLRPC N/A N/A 
    An example object to be published.

    Has five methods accessible by XML-RPC, 'echo', 'hello', 'defer',
    'defer_fail' and 'fail.
     xmlrpc_echo N/A N/A self N/A args N/A N/A 
        Return all passed args.
         N/A args N/A xmlrpc_hello N/A N/A self N/A N/A N/A 
        Return 'hello, world'.
         N/A hello, world! N/A xmlrpc_defer N/A N/A self N/A N/A N/A 
        Show how xmlrpc methods can return Deferred.
         N/A N/A N/A defer succeed hello N/A xmlrpc_defer_fail N/A N/A self N/A N/A N/A 
        Show how xmlrpc methods can return failed Deferred.
         N/A N/A N/A defer fail 12 N/A xmlrpc_fail N/A N/A self N/A N/A N/A 
        Show how we can return a failure code.
         N/A N/A N/A xmlrpclib Fault 7 Out of cheese. N/A N/A main N/A N/A N/A N/A twisted.internet reactor twisted.web server N/A r N/A Echoer N/A N/A N/A reactor listenTCP 7080 N/A N/A server Site r N/A N/A N/A reactor run N/A N/A N/A __name__ __main__ N/A N/A N/A main