######################################################################
# Example XML-RPC Service showing Unicode behaviour.
######################################################################

from twisted.web         import xmlrpc
from twisted.web         import server

from twisted.application import strports
from twisted.application import service

class XMLRPCDateServer ( xmlrpc.XMLRPC ):

    def xmlrpc_echoDate ( self, the_date ):
        print "Received date: ", repr ( the_date ), the_date.__class__
        return the_date

resource    = XMLRPCDateServer()
application = service.Application ( "XMLRPCDateServer" )
site        = server.Site ( resource )
service     = strports.service ( "tcp:8111", site )
service.setServiceParent ( application )

