Example #1
0
 /// <summary>
 /// Post方式调用WebService
 /// </summary>
 /// <param name="url">server接口</param>
 /// <param name="methodName">方法名</param>
 /// <param name="parms">参数</param>
 /// <returns></returns>
 public static string PostWebService(string url, string methodName, IList<UrlParameter> parms) {
     return PostWebService(url, methodName, parms.ToUrl());
 }
Example #2
0
 /// <summary>
 /// GET方式调用WebService
 /// </summary>
 /// <param name="url">server接口</param>
 /// <param name="methodName">方法名</param>
 /// <param name="parms">参数</param>
 /// <returns></returns>
 public static string GetWebService(string url, string methodName, IList<UrlParameter> parms) {
     string param = parms.IsNull() || parms.Count == 0 ? string.Empty : ("?" + parms.ToUrl());
     return GetWebService(url, methodName, param);
 }