Ejemplo n.º 1
0
 public void Finalize()
 {
     // generate project file
     m_project.Finalize();
     m_wsdl    = null;
     m_context = null;
 }
Ejemplo n.º 2
0
        public void Initialize(string genDirectory, string wsdlUrl, wsdlParser.definitions wsdlDef, MAPLib.MapCollection ctxParams)
        {
            m_directory = genDirectory;
            m_wsdlUrl   = wsdlUrl;
            m_wsdl      = wsdlDef;
            m_context   = ctxParams;
            string projName;

            try
            {
                projName = (string)m_context["project"];
            }
            catch (Exception)
            {
                projName = m_wsdl.Name;
            }
            if (projName.Length == 0)
            {
                projName = "SoapProxy";
            }

            CodeGenContext.Current.ProjectName = projName;
            CodeGenContext.Current.Directory   = m_directory;
            CodeGenContext.Current.WsdlUrl     = m_wsdlUrl;

            m_project = new vcProject(m_directory, projName);
        }