【问题标题】:Rationale behind portType and binding in WSDLWSDL 中 portType 和绑定背后的基本原理
【发布时间】:2014-02-04 15:44:06
【问题描述】:

在 WSDL 中,我们在 portType 元素中定义操作名称、输入和输出;稍后在绑定中,我们再次定义操作、输入和输出。这背后的原因是什么?为什么要定义它们两次?我知道在绑定中我们定义了 encodingStyle 和其他属性,那么 portType 需要什么?

【问题讨论】:

标签: web-services soap wsdl jax-ws


【解决方案1】:

您在谈论 WSDL 1.1。在 WSDL 2.0 中,您只需在 interface 标记中定义一次操作。 您应该阅读更多关于 Java 库对 WSDL 2.0 的支持,例如:Axis2 with WSDL 2.0 Tutorial

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-03-11
    • 2014-12-19
    • 2015-08-18
    • 1970-01-01
    • 1970-01-01
    • 2013-02-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多