【问题标题】:WSDL elements relationshipsWSDL 元素关系
【发布时间】:2014-02-24 09:37:36
【问题描述】:

我正在阅读网络以清楚地了解 WSDL 和组成 WSDL 的元素。 是否有图形表示 WSDL 元素如何 definitions, types, portTypes, port, message, operation, binding and services 有关系吗?

例如,我知道如果我想描述一项服务,比如说计算器;它可以执行多种操作,例如加、减、除和乘。

所以我定义了 portType(计算器)抽象实体,它标识了它可以执行的操作(加、减、除和乘)。 然后我可以有一个绑定元素来描述这个接口是如何通过不同的具体协议(HTTP、SMTP 等)实现的。

1> 我可以有 2 个绑定来指定相同的“计算器”端口类型吗 一个使用HTTP,另一个使用SMTP?单个 WSDL 是否可以定义 多种服务(比如计算器、单位转换器等)?

2> 是否有共同关系的图形/描述性表示 WSDL 元素(定义、类型、端口类型、端口、 消息、操作、绑定和服务)?

3> 如果我的 portType 描述了服务中涉及的操作;如何 和服务元素有区别吗?

以下是我试图从中制定想法的网络链接。这些非常有帮助,但我试图清楚地了解 WSDL 组件之间的关系。

参考资料:

http://www.w3.org/TR/wsdl.html
http://msdn.microsoft.com/en-us/library/ms996486.aspx
http://khanna111.com/wordPressBlog/2013/11/21/248/
http://www.w3schools.com/webservices/ws_wsdl_documents.asp

【问题讨论】:

    标签: web-services wsdl


    【解决方案1】:
    1> So can I have 2 bindings that specify same "calculator" portTypes one using HTTP and another using SMTP?
    

    是的。

    Can a single WSDL define multiple services (say calculator, unit converter etc)?
    

    是的,你可以。但是这两种服务都将发布在不同的 URL 上,那有什么意义呢?

    2> Is there a pictorial/descriptive representation of co-relationship between the WSDL elements (definitions, types, portTypes, port, message, operation, binding and services)?
    3> If my portType describes the operations involved in a service; how is it different then the service element?
    

    我已经在这篇文章中描述了这些,你可以参考 WSDL Details

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-02-18
      • 1970-01-01
      • 2016-10-21
      • 1970-01-01
      相关资源
      最近更新 更多