
WebService
dxm809
这个作者很懒,什么都没留下…
展开
-
调用天气预报服务
1.在百度里面搜索天气预报服务,可以找到http://www.webxml.com.cn/zh_cn/weather_icon.aspx2.点开第一行asmx,这个就是wsdl文档,拷贝该地址3 打开vs重新建一个控制台程序4 添加服务引用,粘贴天气预报web服务地址,转到,确定,引入该服务5.修改程序,调用服务using System;using System...原创 2020-04-04 21:19:50 · 356 阅读 · 0 评论 -
在IIS上发布websevice
1.新建asp.net web应用程序,选择空项目2.在项目中,右键,添加新项目,选择web服务3 添加方法using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Services;namespace MyWebService{...原创 2020-04-04 19:21:48 · 591 阅读 · 0 评论 -
CZBK.ItcastOA.WebApp .WebService
在WebService的客户端添加服务引用,如果改变了需要更新服务引用,注意所有方法的返回值必须要能够序列化using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Services;namespace CZBK.ItcastOA.WebApp...原创 2020-04-04 19:25:37 · 343 阅读 · 0 评论