import SOAPpy def hello(): return "Hello World" server = SOAP.SOAPServer(("localhost", 8080)) server.registerFunction(hello) server.serve_forever()