日本国产亚洲-日本国产一区-日本国产一区二区三区-日本韩国欧美一区-日本韩国欧美在线-日本韩国欧美在线观看

當前位置:雨林木風下載站 > 技術開發教程 > 詳細頁面

soap規范(3)

soap規范(3)

更新時間:2022-05-01 文章作者:未知 信息來源:網絡 閱讀次數:

以下是一個同時具有簡單和復雜成員類型的例子。它顯示兩層引用。注意"Author"accssor元素的"href"屬性是對相應具有"id"屬性的值的引用。"Address"與之類似。

<e:Book>
 <title>My Life and Work</title>
 <author href="#Person-1"/>
</e:Book>
<e:Person id="Person-1">
 <name>Henry Ford</name>
 <address href="#Address-2"/>
</e:Person>
<e:Address id="Address-2">
 <email>mailto:henryford@hotmail.com</email>
 <web>http://www.henryford.com</web>
</e:Address>

當"Person"的值和"Address"的值是multi-reference時,上面的形式是正確的。如果它們是single-reference,就必須用嵌入的形式,如下所示:

<e:Book>
 <title>My Life and Work</title>
 <author>
 <name>Henry Ford</name>
 <address>
<email>mailto:henryford@hotmail.com</email>
<web>http://www.henryford.com</web>
 </address>
 </author>
</e:Book>
如果添加一個限制,任意兩個人都不會有相同的地址,并且地址可以是街道或Email地址,一本書可以有兩個作者,編碼如下:

<e:Book>
 <title>My Life and Work</title>
 <firstauthor href="#Person-1"/>
 <secondauthor href="#Person-2"/>
</e:Book>
<e:Person id="Person-1">
 <name>Henry Ford</name>
 <address xsi:type="m:Electronic-address">
 <email>mailto:henryford@hotmail.com</email>
 <web>http://www.henryford.com</web>
 </address>
</e:Person>
<e:Person id="Person-2">
 <name>Samuel Crowther</name>
 <address xsi:type="n:Street-address">
 <street>Martin Luther King Rd</street>
 <city>Raleigh</city>
 <state>North Carolina</state>
 </address>
</e:Person>

序列化可以包含對不在同一個資源的值的引用:

<e:Book>
 <title>Paradise Lost</title>
 <firstauthor href="http://www.dartmouth.edu/~milton/"/>
</e:Book>

以下是描述上面結構的schema片斷:

<element name="Book" type="tns:Book"/>
<complexType name="Book">
 <!-- Either the following group must occur or else the
href attribute must appear, but not both. -->
 <sequence minOccurs="0" maxOccurs="1">
 <element name="title" type="xsd:string"/>
 <element name="firstauthor" type="tns:Person"/>
 <element name="secondauthor" type="tns:Person"/>
 </sequence>
 <attribute name="href" type="uriReference"/>
 <attribute name="id" type="ID"/>
 <anyAttribute namespace="##other"/>
</complexType>

<element name="Person" base="tns:Person"/>
<complexType name="Person">
 <!-- Either the following group must occur or else the
href attribute must appear, but not both. -->
 <sequence minOccurs="0" maxOccurs="1">
 <element name="name" type="xsd:string"/>
 <element name="address" type="tns:Address"/>
 </sequence>
 <attribute name="href" type="uriReference"/>
 <attribute name="id" type="ID"/>
 <anyAttribute namespace="##other"/>
</complexType>

<element name="Address" base="tns:Address"/>
<complexType name="Address">
 <!-- Either the following group must occur or else the
href attribute must appear, but not both. -->
 <sequence minOccurs="0" maxOccurs="1">
 <element name="street" type="xsd:string"/>
 <element name="city" type="xsd:string"/>
 <element name="state" type="xsd:string"/>
 </sequence>
 <attribute name="href" type="uriReference"/>
 <attribute name="id" type="ID"/>
 <anyAttribute namespace="##other"/>
</complexType>

溫馨提示:喜歡本站的話,請收藏一下本站!

本類教程下載

系統下載排行

主站蜘蛛池模板: 欧美成人免费大片888 | 日本欧美人xxxxx在线观看 | 久久精品在这里 | 国产成人一区二区视频在线观看 | 一区二区成人国产精品 | 亚洲成本人网亚洲视频大全 | 色综合欧美综合天天综合 | 欧美高清揄拍自拍视频网站 | 三级国产短视频在线观看 | 久久这里只有精品9 | 国产免费久久精品99久久 | 久久夜色国产精品噜噜 | 天天襙 | 日本在线观看www | 成人网址在线观看 | 日日摸天天摸狠狠摸摸 | 国产三级观看 | 成人拍拍拍免费视频网站 | 狠狠色狠狠色综合网 | 成人午夜大片免费看爽爽爽 | 中文字幕日韩在线 | 日韩三级在线免费观看 | 天堂中文字幕在线 | 午夜在线观看cao | 日本三级福利 | 欧美精品国产一区二区 | 日韩一级片免费在线观看 | 国产精品1区2区 | 在线观看国产日本 | 亚洲跨种族黑人xxx 亚洲另类 专区 欧美 制服 | 亚洲黄色免费观看 | 成人网在线免费观看 | 国内精品久久国产大陆 | 色视频免费版高清在线观看 | 超碰免费公开 | 天天狠狠色噜噜 | 欧美亚洲激情在线 | 国产精品全国探花泡良大师 | 永久久久免费浮力影院 | 欧美黑人操 | 午夜影视免费观看 |