from ZSI.ServiceContainer import ServiceContainer, SOAPRequestHandler from VanHelsing_server import VanHelsing class VanSOAPRequestHandler(SOAPRequestHandler): def do_GET(self): wsdl=open("VanHelsing.wsdl").read() self.send_xml(wsdl) def AsServer(port=80, services=(), RequestHandlerClass=SOAPRequestHandler): address = ("127.0.0.1",port) sc = ServiceContainer(address, RequestHandlerClass=RequestHandlerClass) for service in services: path = service.getPost() sc.setNode(service,path) sc.serve_forever() if 1: AsServer(port=8080,services=[ VanHelsing() ], RequestHandlerClass=VanSOAPRequestHandler)