动态调用Webservice[7]

[入库:2006年2月23日] [更新:2007年3月24日]

本文简介:

                       foreach(System.CodeDom.Compiler.CompilerError ce in cr.Errors)

                       {

                            sb.Append(ce.ToString());

                            sb.Append(System.Environment.NewLine);

                       }

                       throw new Exception(sb.ToString());

                   }

                   System.Reflection.Assembly assembly = cr.CompiledAssembly;

                   Type t = assembly.GetType(@namespace+"."+classname,true,true);

                   object obj = Activator.CreateInstance(t);

本文关键:动态调用Webservice
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top