C# 利用反射调用WebService时出现’参数计数不匹配。’错误,求解!

winfpt winfpt 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
/// <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 + "】不正确,请检查!");
}
...全文
评论 9
收藏 已收藏
分享
返回顶部
winfpt
C# 111,129 成员 642,538 内容