SOAP-WSDL-WSRM

  1. Web服务(Web Services)SOA的服务契约——WSDL
  2. wsdl example 
  3. http://luyongxin88.blog.163.com/blog/static/92558072011320101454287/
  4. WebService第一天
  5. https://www.ibm.com/developerworks/cn/webservices/ws-asynch/part1/index.html
WSDL(Web Services Description Language),是一个用来描述Web服务(Web Services)和说明如何与Web服务通信的XML语言。因为是基于XML的,所以 WSDL既是机器可阅读的,又是人可阅读的,这将是一个很大的好处。一些最新的开发工具既能根据你的Web services生成WSDL文档,又能导入WSDL文档,生成调用相应Webservices的代码。
  WSDL文件包含以下元素:
  Type:提供用于描述所交换消息的数据类型定义(string、int);
  Message:代表所传输数据的抽象定义。消息由一些逻辑片断构成,每个逻辑片断分别与某个类型系统中的定义相关联。
  PortType:一个或多个端点支持的操作的抽象集合。每个操作一般会引用一条输入消息和一条输出消息。
  Binding:为特定PortType(端口类型)定义的操作和消息指派具体的传输协议和数据格式规范。

  Port:为Binding(绑定)制定一个地址,从而定义一个服务访问点。

      Service:用于聚合一组服务访问点构成一个Web Services的定义。

WSDL文件保存在Web服务器上,通过一个url地址就可以访问到它。客户端要调用一个WebService服务之前,要知道该服务的WSDL文件的地址。WebService服务提供商可以通过两种方式来暴露它的WSDL文件地址:1.注册到UDDI服务器,以便被人查找;2.直接告诉给客户端调用者。

Wsdl大家经常称之为webservice的说明书。例如:

Webservice地址:http://127.0.0.1:8888/mobile

wsdl的地址:http://127.0.0.1:8888/mobile?wsdl


 PS:实际上可以用浏览器打开一个具体的webservice来看,比如以下查询手机归属地的wsdl格式的webservice

http://fy.webxml.com.cn/webservices/EnglishChinese.asmx?wsdl

================================================================

  1. WS-RM: Web Service Reliable Messaging
  2. Web服务可靠消息传输简介
  3. Nobody Needs Reliable Messaging
  4. 可靠的消息传输协议,有必要吗?(item3的中文版)

Reliable messaging solutions usually solve this problem through acknowledgements, duplicate detection and duplicate removal, as scenario 3 shows.


Basically we make every message idempotent on the message transport level. If we have unique business id's, duplicate detection on the business level, and business acks, it is always safe to resend a message on the message level. 

To summarize: if reliability is important on the business level, do it on the business level. A Reliable Messaging layer can handle only generic logic, but that's not what we want: we want business-specific logic for in-order and exactly-once processing. WS-Reliable Messaging (or its competitors) may sometimes have some value in optimizing solutions, especially point-to-point. But from a business perspective, a well-designed business solution does not need reliable messaging.

猜你喜欢

转载自blog.csdn.net/a19576/article/details/80800970
今日推荐