WSDL文档了解:
1.wsdl的作用:定义了web service的服务器端与客户端应用交互传递请求和响应数据的格式和方式。
2.wsdl文档结构
< definitions> // 定义文档的访问空间及遵守的规范:
< documentation> //对WSDL作说明
< type> //定义一些访问、响应接口
< message> //通信消息的数据结构的抽象类型化定义。
< portType> //对于某个访问入口点类型所支持的操作的抽象集合。
< binding> // 特定访问端口类型的具体协议和数据格式规范的绑定。
< service> //相关服务访问点的集合
3.以航班信息服务查询为例,网址查看:
http://ws.webxml.com.cn/webservices/DomesticAirline.asmx?wsdl
案例中的访问地址就在<wsdl:service >标签下
location = http://ws.webxml.com.cn/webservices/DomesticAirline.asmx
访问的时候需要+?wsdl,即:
http://ws.webxml.com.cn/webservices/DomesticAirline.asmx?wsdl