以文本方式查看主题

-  计算机科学论坛  (http://bbs.xml.org.cn/index.asp)
--  『 Web Services & Semantic Web Services 』  (http://bbs.xml.org.cn/list.asp?boardid=10)
----  《Understand SOA wiht webservices》 书里面有句话不太理解  (http://bbs.xml.org.cn/dispbbs.asp?boardid=10&rootid=&id=37439)


--  作者:flyfoxs
--  发布时间:8/30/2006 7:57:00 PM

--  《Understand SOA wiht webservices》 书里面有句话不太理解
Understand SOA wiht webservices[中文版]的276页面,第三段 有这样一句话。
执行Web服务所需的基本元数据包括:WSDL文档以及SOAP侦听(用于接收和返回消息)的端点地址。

上面这句话有如下几个问题不解:
原文中“SOAP侦听的端点地址”指的是不是/definitions/service/port/address/@location。

1)如果是的话:那么干嘛把”SOAP侦听的端点地址”单独拿出来。不是多余吗?

2)如果不是的话,那么”SOAP侦听的端点地址”指的是?并且执行基本Web服务好像只要WSDL就够了,不要其它的什么元数据啊。因为WSDL已经对基本WEB服务提供了充分的描述。

注:基本WEB服务是指不包括,安全,事务,可靠性之类的选项。

     中文对应的英文原文为:
The fundamental metadata required to execute a Web service typically includes the WSDL file and the endpoint address at which the SOAP listener is available to receive (and optionally return) messages.


--  作者:admin
--  发布时间:8/31/2006 4:32:00 PM

--  
以下是引用flyfoxs在2006-8-30 19:57:00的发言:
Understand SOA wiht webservices[中文版]的276页面,第三段 有这样一句话。
执行Web服务所需的基本元数据包括:WSDL文档以及SOAP侦听(用于接收和返回消息)的端点地址。

上面这句话有如下几个问题不解:
原文中“SOAP侦听的端点地址”指的是不是/definitions/service/port/address/@location。

~~~~~~~前者,指的是实际运行环境中的一个实实在在的endpoint address。后者,是WSDL中给出的一个地址。大多数情况下,在运行时,前者=后者。

1)如果是的话:那么干嘛把”SOAP侦听的端点地址”单独拿出来。不是多余吗?
~~~~~~~~~~~~是这样的。
我们来考察一下Web服务的调用过程,以及WSDL, SOAP所起的角色。
获取WSDL --->  构造SOAP消息  --->  向 Endpoint 发送SOAP消息。
虽然WSDL里指定了endpoint address,但实际上,WSDL里指出的endpoint address,是可以在后来被override的(虽然一般情况下,是采用WSDL里指定的地址)。

2)如果不是的话,那么”SOAP侦听的端点地址”指的是?并且执行基本Web服务好像只要WSDL就够了,不要其它的什么元数据啊。因为WSDL已经对基本WEB服务提供了充分的描述。
~~~~~~~~~~~~~~~~~~把WSDL等理解为元数据

注:基本WEB服务是指不包括,安全,事务,可靠性之类的选项。
~~~~~是的

      中文对应的英文原文为:
The fundamental metadata required to execute a Web service typically includes the WSDL file and the endpoint address at which the SOAP listener is available to receive (and optionally return) messages.




W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
109.375ms