gpt4 book ai didi

wsdl - 哪些 WSDL 标签可以有文档标签?

转载 作者:行者123 更新时间:2023-12-05 01:29:47 24 4
gpt4 key购买 nike

我正在尝试使用一些统计信息进行 WSDL 解析(使用 c#.net)。我的统计数据取决于 WSDL 中的文档标签。我想知道可以包含文档标签的 wsdl 标签列表来检查它们。

我试图阅读 WS-I 基本配置文件,我发现:

5.1.10 WSDL 文档元素

WSDL 1.1 模式和 WSDL 1.1 规范在 wsdl:documentation 元素可以放置的位置方面不一致。

R2020 wsdl:documentation 元素可以作为描述中 wsdl:import 元素的子元素出现。 WSDL20

R2021 wsdl:documentation 元素可以作为描述中 wsdl:part 元素的子元素出现。 WSDL20

R2024 wsdl:documentation 元素可以作为描述中 wsdl:definitions 元素的第一个子元素出现。 WSDL20

但是,此配置文件是在 2004 年制作的,所以他们是否进行了更改?文档标签可以是当前标签的任何内部子标签的一部分吗?

谢谢
Kawthar almatori

最佳答案

WS-I basic profile 2.0状态,WSDL 1.1 specification 之间存在一些不一致之处。和 WSDL 1.1 schema .根据模式 a <wsdl:documentation>元素被允许作为以下元素的第一个子元素:

/definitions
/definitions/binding
/definitions/binding/operation
/definitions/binding/operation/fault
/definitions/binding/operation/input
/definitions/binding/operation/output
/definitions/import
/definitions/message
/definitions/message/part
/definitions/portType
/definitions/portType/operation
/definitions/portType/operation/fault
/definitions/portType/operation/input
/definitions/portType/operation/output
/definitions/service
/definitions/service/port
/definitions/types

WSDL 1.1 规范在以下方面有所不同:
  • 它放置了 /definitions/documentation /definitions/import 之后的元素元素,如果存在。
  • 它不允许 <wsdl:documentation> child 上/definitions/import/definitions/message/part元素。

  • WS-I 基本概要中的声明基本上重申了 WSDL 1.1 模式,允许在 /definitions/import 上。和 /definitions/message/part元素,并指定 <wsdl:documentation>允许作为 /definitions 的第一个 child

    关于wsdl - 哪些 WSDL 标签可以有文档标签?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10042652/

    24 4 0