元素、复杂类型和序列在 WSDL 模式中意味着什么?
what does element, complexType and sequence mean in WSDL schema?
我了解到以下代码是来自 this file 的 wsdl 架构的一部分。
<s:element name="serverVersionResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="serverVersionResult" type="s:string"/>
</s:sequence>
</s:complexType>
</s:element>
我的问题是:
1) 什么是<element>
?
2) 什么是<complexType>
?
3) 什么是<sequence>
?
4) 最重要的是,"s"在<s:element>
中是什么意思?
如果数据发回给我。数据是什么样的?
what is <element>
?
在XML Schemas中,元素定义了XML的一个元素。
可简可繁
what is <complexType>
?
CompexType 通常包含对象定义,它可以包含一个或多个元素。
what is <sequence>
?
Sequence 定义了 XML 个元素的序列。它是可选的。
如果 CompexType 被指标包围。这意味着子元素的出现顺序必须与它们声明的顺序相同。您将在 XSD 指标一章中了解有关指标的更多信息。尽管在您的示例中并不重要,因为只有一个元素存在。
most importantly, what does "s" mean in <s:element>
?
s
是您的架构 URI 的本地名称架构。
我认为您应该深入研究 XML 架构定义。你可以试试 https://www.w3schools.com/xml/schema_intro.asp.
我了解到以下代码是来自 this file 的 wsdl 架构的一部分。
<s:element name="serverVersionResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="serverVersionResult" type="s:string"/>
</s:sequence>
</s:complexType>
</s:element>
我的问题是:
1) 什么是<element>
?
2) 什么是<complexType>
?
3) 什么是<sequence>
?
4) 最重要的是,"s"在<s:element>
中是什么意思?
如果数据发回给我。数据是什么样的?
what is
<element>
?
在XML Schemas中,元素定义了XML的一个元素。
可简可繁
what is
<complexType>
?
CompexType 通常包含对象定义,它可以包含一个或多个元素。
what is
<sequence>
?
Sequence 定义了 XML 个元素的序列。它是可选的。 如果 CompexType 被指标包围。这意味着子元素的出现顺序必须与它们声明的顺序相同。您将在 XSD 指标一章中了解有关指标的更多信息。尽管在您的示例中并不重要,因为只有一个元素存在。
most importantly, what does "s" mean in
<s:element>
?
s
是您的架构 URI 的本地名称架构。
我认为您应该深入研究 XML 架构定义。你可以试试 https://www.w3schools.com/xml/schema_intro.asp.