private void FillWsdlTab()
 {
     if ((wsdl.Wsdls != null) && (wsdl.Wsdls.Count != 0))
     {
         int num3;
         richWsdl.Text = wsdl.Wsdls[0];
         treeWsdl.Nodes.Clear();
         TreeNode node1 = treeWsdl.Nodes.Add("WSDLs");
         XmlTreeWriter writer1 = new XmlTreeWriter();
         for (int num1 = 0; num1 < wsdl.Wsdls.Count; num1++)
         {
             num3 = num1 + 1;
             TreeNode node2 = node1.Nodes.Add("WSDL#" + num3.ToString());
             node2.Tag = wsdl.Wsdls[num1];
             writer1.FillTree(wsdl.Wsdls[num1], node2);
         }
         TreeNode node3 = treeWsdl.Nodes.Add("Schemas");
         for (int num2 = 0; num2 < wsdl.Xsds.Count; num2++)
         {
             num3 = num2 + 1;
             TreeNode node4 = node3.Nodes.Add("Schema#" + num3.ToString());
             node4.Tag = wsdl.Xsds[num2];
             writer1.FillTree(wsdl.Xsds[num2], node4);
         }
         TreeNode node5 = treeWsdl.Nodes.Add("Proxy");
         node5.Tag = wsdl.ProxyCode;
         TreeNode node6 = treeWsdl.Nodes.Add("ClientCode");
         node6.Tag = "Shows client code for all methods accessed in the invoke tab";
         node1.Expand();
     }
 }
Ejemplo n.º 2
0
 private void FillWsdlTab()
 {
     if ((this.wsdl.Wsdls != null) && (this.wsdl.Wsdls.Count != 0))
     {
         int num3;
         this.richWsdl.Text = this.wsdl.Wsdls[0];
         this.treeWsdl.Nodes.Clear();
         TreeNode node = this.treeWsdl.Nodes.Add("WSDLs");
         XmlTreeWriter writer = new XmlTreeWriter();
         for (int i = 0; i < this.wsdl.Wsdls.Count; i++)
         {
             num3 = i + 1;
             TreeNode root = node.Nodes.Add("WSDL#" + num3.ToString());
             root.Tag = this.wsdl.Wsdls[i];
             writer.FillTree(this.wsdl.Wsdls[i], root);
         }
         TreeNode node3 = this.treeWsdl.Nodes.Add("Schemas");
         for (int j = 0; j < this.wsdl.Xsds.Count; j++)
         {
             num3 = j + 1;
             TreeNode node4 = node3.Nodes.Add("Schema#" + num3.ToString());
             node4.Tag = this.wsdl.Xsds[j];
             writer.FillTree(this.wsdl.Xsds[j], node4);
         }
         this.treeWsdl.Nodes.Add("Proxy").Tag = this.wsdl.ProxyCode;
         this.treeWsdl.Nodes.Add("ClientCode").Tag = "Shows client code for all methods accessed in the invoke tab";
         node.Expand();
     }
 }