WSDL 文档中允许有多少个 WSDL 规范可扩展性元素
可以使用可扩展性元素(例如 SOAP)来扩展 wsdl 规范。
这些可扩展性元素出现在 wsdl 文档 (http://www.w3. org/TR/wsdl - 2.1 WSDL 文档结构)
我正在尝试解析 wsdl 文档,并且规范似乎没有详细说明在给定位置可能出现多少个可扩展性元素。例如,对于给定的绑定,是否可以应用多个扩展,如下例所示?
<binding name="StockQuoteSoapBinding" type="defs:StockQuotePortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<foo:otherextension foo="bar"/>
虽然没有定义扩展数量的限制,但也不存在演示多个扩展的使用的示例。
The wsdl specification can be extended using extensibility elements, such as SOAP.
These extensibility elements appear around the bindings, operations and port sections of the wsdl document (http://www.w3.org/TR/wsdl - 2.1 WSDL Document Structure)
I am trying to parse a wsdl document, and the specification doesn't seem to detail how many extensibility elements may appear in a given place. E.g. for a given binding, can multiple extensions be applied such as the example below?
<binding name="StockQuoteSoapBinding" type="defs:StockQuotePortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<foo:otherextension foo="bar"/>
Whilst no limit on the number of extensions is defined, no examples exist that demonstrate the use of multiple extensions either.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
WSDL 的 XML 模式 表示无限数量的元素(只要它们属于外部命名空间) WSDL)可以用在定义为可扩展的元素之一中:
The XML Schema for WSDL indicates that an unbounded number of elements (as long as they belong to a namespace outside of WSDL) can be used in one of the elements defined to be extensible: