Skip to content

Instantly share code, notes, and snippets.

@mattwigway
Created October 13, 2011 05:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattwigway/1283460 to your computer and use it in GitHub Desktop.
Save mattwigway/1283460 to your computer and use it in GitHub Desktop.
Quick twisted XMLRPC test
from twisted.web import xmlrpc, server
from twisted.internet import reactor, defer
class rpctest(xmlrpc.XMLRPC):
def xmlrpc_test(self):
return "Hello, world!"
if __name__ = '__main__':
r = rpctest()
reactor.listenTCP(7080, server.Site(r))
reactor.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment