web service 的定义步骤(阅读笔记)
来源:互联网 发布:本科生导师制 知乎 编辑:程序博客网 时间:2024/06/15 18:55
这边显然是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 的文档结构
<definitions> <types> ... </types> <message> ... </message> <portType> ... </portType> <binding> ... </binding> <service> ... </serivce></definitions>
0 0
- web service 的定义步骤(阅读笔记)
- web service的定义
- Web Service的基本定义
- web service创建的详细步骤
- 定义良好的web service接口
- 分布式系统阅读笔记(九)-----Web Service服务
- 【转载】Web Service定义
- 阅读Service源代码笔记
- 架构Web Service:交互界面,Web服务定义的核心
- Web Service学习笔记(一)[web service的本质]
- Eclipse 调试天气预报的Web Service的方法和步骤。
- 编写一个单独的Web Service for Delphi7(步骤)
- 编写一个单独的Web Service for Delphi7(步骤)
- Java 中用Xfire 开发Web Service 的步骤
- 定义web service接口的十点注意事项(转)
- 定义web service接口的十点注意事项
- 我的java web 更改步骤笔记
- CXF的web service 学习笔记
- WPF使用DynamicDataDisplay.dll显示CPU及内存使用曲线
- Android 之 Eclipse没法生成R文件
- median of two sorted array
- 课堂随笔第一节数据类型
- Android百度公交开发(一)——如何在Android应用中使用百度地图api
- web service 的定义步骤(阅读笔记)
- 百元买百鸡
- OSGI Blueprint
- 使用VAssistX为VS2008 c++代码添加函数头注释http://blog.sina.com.cn/s/blog_4aff4b970101bfqs.html
- CentOS 6.6 编译、安装xrdp
- 直线斜率、交角、转向角
- nil / Nil / NULL / NSNull
- 嵌套循环中的 continue ,break
- Android 系统自动重启Bug(高通平台)