public static object InvokeWebService(string wsdlUrl, string methodname, IList <object> args) { object[] arr = new object[args.Count]; args.CopyTo(arr, 0); return(WebServiceHelper.InvokeWebService(wsdlUrl, null, methodname, arr)); }
/// <summary> /// 动态调用web服务 /// </summary> /// <param name="url">web服务WSDL地址</param> /// <param name="methodname">方法</param> /// <param name="args">参数</param> /// <returns></returns> public static object InvokeWebService(string wsdlUrl, string methodname, object[] args) { return(WebServiceHelper.InvokeWebService(wsdlUrl, null, methodname, args)); }