Created
October 13, 2011 05:20
-
-
Save mattwigway/1283460 to your computer and use it in GitHub Desktop.
Quick twisted XMLRPC test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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