from ZServer.datatypes import ServerFactory from ZServer import HTTPServer class SoapServerFactory(ServerFactory): def __init__(self, section): ServerFactory.__init__(self, section.address) self.server_class = HTTPServer.zhttp_server def create(self): from ZServer.AccessLogger import access_logger handler = self.createHandler() server = self.server_class(ip=self.ip, port=self.port, resolver=self.dnsresolver, logger_object=access_logger) server.install_handler(handler) return server def createHandler(self): import HTTPServer as shttp_server return shttp_server.soap_zhttp_handler(self.module, '', self.cgienv)