[Twisted-Python] Adding introspection to xlmrpc server

Andrew Bennetts andrew at bemusement.org
Sun Jul 31 19:00:38 EDT 2011


Justin Frost wrote:
>    I'm trying the example found at:
>    [1]http://twistedmatrix.com/documents/current/web/howto/xmlrpc.html#auto3
>    And it doesn't seem to be working.  The following test code fails:
>    import xmlrpclib
>    s = xmlrpclib.ServerProxy("http://localhost:8080")
>    print s.listMethods()
>    The error says that the listMethods method isn't defined.  If I create an
>    xmrpc server without twisted and add introspection, it works fine.  Is
>    there a problem with the example or am I doing something wrong?

Try:

    print s.system.listMethods()

-Andrew.




More information about the Twisted-Python mailing list