更新时间:2022-11-06 13:45:17
转而使用WCF RESTful Web服务。
见 tutorial。 [ ^ ]
-KR
How can i call a webmethod of asp.net page in my anroid app.
[WebMethod()]
public static string GetHomePageCoupon()
{
setConnectionString();
List<Coupon> coupons = DataAccesLayer.GetHomePageCoupon();
return Utility.Serialize<List<Coupon>>(coupons);
}
Utility .Serialize will return JSON data.
Rather go for WCF RESTful Web Service.
See this tutorial.[^]
-KR