六月婷婷综合激情-六月婷婷综合-六月婷婷在线观看-六月婷婷在线-亚洲黄色在线网站-亚洲黄色在线观看网站

明輝手游網中心:是一個免費提供流行視頻軟件教程、在線學習分享的學習平臺!

soap規范(3)

[摘要]以下是一個同時具有簡單和復雜成員類型的例子。它顯示兩層引用。注意"Author"accssor元素的"href"屬性是對相應具有"id"屬...
以下是一個同時具有簡單和復雜成員類型的例子。它顯示兩層引用。注意"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:[email protected]</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:[email protected]</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:[email protected]</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>




主站蜘蛛池模板: 日夜啪 | 午夜欧美精品 | 色噜噜噜| 青青草原国产在线 | 婷婷综合久久狠狠色99h | 天天做天天爱夜夜爽毛片毛片 | 欧美一级h| 天天干夜夜操 | 日本精品久久久久久久久免费 | 杨幂国产精品福利在线观看 | 欧美一级一级做性视频 | 日韩第二页 | 在线亚洲精品自拍 | 亚洲伊人久久大香线蕉综合图片 | 午夜免费看片 | 三级国产三级在线 | 天天搞天天| 日韩亚洲制服丝袜中文字幕 | 日日操日日 | 日本亚洲欧美 | 青青青久在线视频免费观看 | 伊人动漫 | 欧美丝袜一区 | 五月婷婷视频在线观看 | 中文字幕字幕乱码熟 | 一二三四免费影院 | 欧美性猛交ⅹxxx乱大交免费 | 日本后进式猛烈xx00动态图 | 伊人精品久久久大香线蕉99 | 综合色亚洲 | 日本www色视频成人免费免费 | 在线天堂网 | 欧美综合亚洲图片综合区 | 日韩国产中文字幕 | 四虎精品成人免费视频 | 午夜精品久久久久久久第一页 | 青青草原免费在线观看视频 | 日本高清色视频www 日本高清色本在线www游戏 | 青青草国产精品久久久久 | 天天干天天草天天射 | 日本护士后进式猛烈动态图片 |