C# 利用反射调用WebService时出现’参数计数不匹配。’错误,求解!
/// <summary>
/// 执行代理类指定方法,有返回值
/// </summary>
/// <param name="methodName">方法名称</param>
/// <param name="param">参数</param>
/// <returns>object</returns>
//public object ExecuteQuery(string methodName, object[] param)
public object ExecuteQuery(string methodName, object[] param)
{
object rtnObj = null;
//string[] args = new string[2];
//List<string> list = new List<string>();
//List<string> list1 = new List<string>();
//List<string> list2 = new List<string>();
//object[] obj = new object[3];
try
{
if (this._typeName == null)
{
//记录Web服务访问类名错误日志代码位置
throw new TypeLoadException("Web服务访问类名【" + this._wsdlName + "】不正确,请检查!");
}