[Twisted-Python] Adding introspection to xlmrpc server

Andrew Bennetts andrew at bemusement.org
Sun Jul 31 17:00:38 MDT 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?


    print s.system.listMethods()


More information about the Twisted-Python mailing list