private string GenerateClientCode() { Script script = new Script(wsdl.ProxyNamespace, "MainClass"); foreach (TreeNode node in treeMethods.Nodes) { script.Proxy = GetProxyPropertyFromNode(node).GetProxy(); foreach (TreeNode node2 in node.Nodes) { TreeNode tag = node2.Tag as TreeNode; if (tag != null) { MethodProperty property = tag.Tag as MethodProperty; if (property != null) { MethodInfo method = property.GetMethod(); object[] parameters = property.ReadChildren() as object[]; script.AddMethod(method, parameters); } } } } return script.Generate(this.wsdl.GetCodeGenerator); }