摘要: 第一步、WebServices提供的方法没有变动(需要可查看我的上一篇 Http POST方式) 第二步、为了让WebServices支持GET方式,则需要在Web.config配置文件中增加如下代码 1 <system.web> 2 <webServices> 3 <protocols> 4 <a 阅读全文
posted @ 2020-03-26 22:23 一叶孤城 阅读(885) 评论(0) 推荐(0)
摘要: 第一步、编写WebServices服务方法 1 [WebMethod] 2 public void PostJson(string str, string bb) 3 { 4 Dictionary<string, object> DictResult = new Dictionary<string, 阅读全文
posted @ 2020-03-26 21:53 一叶孤城 阅读(1119) 评论(0) 推荐(0)
摘要: 第一步、Winform项目引用WEB服务 第二步、代码声明实例化 Web引用 YzServ.TestServ yzserv = new WebYzServ.TestServ(); yzserv.AAA("参数值"); 阅读全文
posted @ 2020-03-26 20:40 一叶孤城 阅读(432) 评论(0) 推荐(0)