这边显然是wsdl 1.1 的规范,
1、编写 xsd schema(*.xsd)
这个主要用来定义数据模型,编码人员可以理解为po类
在WSDL中就是Data Type
2、编写Message(*.wsdl)
Message可以认为是接口的输入、输出的参数的容器,
每个Message包含多个Part,每个part对应一个DataType
3、编写PortType(相当于函数集或者类),每个portType 包含若干Operation(相当于一个函数),每个Operation包含一个input ,还可以有一个output,还可以有一个fault
4、编写binding,一个banding 对应一个portType,另外还需要指定传输协议等信息
5、编写Service,一个Service包含若干Port,一个port对应一个binding
wsdl2.0和1.1对比图如下
![这里写图片描述]
参考文章这里写代码片
http://xiongzhenhui.iteye.com/blog/998932
wsdl2.0 的文档结构
<wsdl:description xmlns:wsdl="http://www.w3.org/ns/wsdl">
<wsdl:types/>
<wsdl:interface/>
<wsdl:binding/>
<wsdl:service/>
</wsdl:description>
wsdl1.1 的文档结构
扫描二维码关注公众号,回复:
4947906 查看本文章
<definitions>
<types> ... </types>
<message> ... </message>
<portType> ... </portType>
<binding> ... </binding>
<service> ... </serivce>
</definitions>