コード例 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            this.checkBox1.Checked = true;
            this.dataGridView1.Rows.Clear();
            //this.checkedListBox1.Items.Clear();
            string webservice    = this.webServiceText.Text;
            string package       = this.packagenameText.Text;
            string destpath      = this.destpathText.Text;
            string namespacetext = this.namespaceText.Text;

            parser = new WsdlParser(webservice, package, destpath, namespacetext);
            Dictionary <string, List <XmlSchemaElement> > opList     = parser.parse().Item1;
            Dictionary <string, List <XmlSchemaElement> > outputList = parser.parse().Item2;

            //this.checkedListBox1.Items.Add("ALL",true);
            foreach (string s in opList.Keys)
            {
                string parameters = " ";
                foreach (XmlSchemaElement elem in opList[s])
                {
                    parameters += parser.getListDef(elem) + "  " + elem.Name + ",";
                }
                parameters = parameters.Substring(0, parameters.Length - 1);
                //this.checkedListBox1.Items.Add(s+"("+parameters+")           return:"+parser.getListDef(outputList[s+"Response"][0]),true);
                this.dataGridView1.Rows.Add(true, s, parameters, parser.getListDef(outputList[s + "Response"][0]));
            }
        }