import SOAPpy def GetHit( timeout ): return ( 2, 25 ) server = SOAPpy.SOAPServer( ("localhost", 8080) ) server.registerFunction( GetHit ) server.serve_forever( )