docs: def _wsdl2dispatch(options, wsdl):
      """TOOD: Remove ServiceContainer stuff, and replace with WSGI.
      """
      kw = dict()
      if options.twisted:
          from pyremotevbox.ZSI.twisted.WSresource import WSResource
          kw['base'] = WSResource
          ss = ServiceDescription(**kw)
          if options.address is True:
              raise RuntimeError, 'WS-Address w/twisted currently unsupported, edit the "factory" attribute by hand'
      else:
          # TODO: make all this handler arch
          if options.address is True:
              ss = ServiceDescriptionWSA()
          else:
              ss = ServiceDescription(**kw)
  
      ss.fromWSDL(wsdl)
      file_name = ss.getServiceModuleName()+'.py'
      fd = open( join(options.output_dir, file_name), 'w+')
      ss.write(fd)
      fd.close()
      
      return file_name