Exemplo n.º 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, Hashtable parms) {
     return PostWebService(url, methodName, parms.ToUrl());
 }
Exemplo n.º 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, Hashtable parms) {
     string param = parms.IsNull() || parms.Count == 0 ? string.Empty : ("?" + parms.ToUrl());
     return GetWebService(url, methodName, param);
 }