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

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

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>

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

本類教程下載

系統下載排行

主站蜘蛛池模板: 日韩欧美中字 | 久久精品中文字幕不卡一二区 | 刺激第一页720lu久久 | 欧美国产一区二区 | 欧美日韩亚洲精品一区二区 | 亚洲成人第一页 | 国产nv精品你懂得 | 欧美亚洲国产成人精品 | 亚洲欧美久久婷婷爱综合一区天堂 | 91精品视频网站 | 国产精品香蕉一区二区三区 | 中文字幕成人免费高清在线 | 四虎国产精品免费久久久 | 国产精品麻豆一区二区三区v视界 | 天天干夜夜噜 | 狠狠撸狠狠干 | 亚洲福利小视频 | 无遮挡一级毛片性视频不卡 | 天天色综合5 | 18禁片一级毛片视频播放免费看 | 国产在线观看精品一区二区三区91 | 中文字幕日韩精品一区口 | 婷婷综合 在线 | 久久成人亚洲香蕉草草 | 亚洲国产区 | 狠狠色成人综合网图片区 | 亚洲天天在线日亚洲洲精 | 欧美一级特黄aaaaaaa在线观看 | 天天噜噜色 | 欧美极品bbbbⅹxxxx | 久久精品在现线观看免费15 | 最新日韩中文字幕 | 日韩不卡高清视频 | 亚洲精品福利在线观看 | 国产三级在线观看视频不卡 | 美国免费三片在线观看 | 国产精品香蕉在线观看首页 | 97干色| 狠狠色狠狠色综合日日不卡 | 爱爱综合网| 亚洲吊丝网|