• <label id="pxtpz"><meter id="pxtpz"></meter></label>
      1. <span id="pxtpz"><optgroup id="pxtpz"></optgroup></span>

        當(dāng)前位置:雨林木風(fēng)下載站 > 技術(shù)開發(fā)教程 > 詳細(xì)頁(yè)面

        soap規(guī)范(3)

        soap規(guī)范(3)

        更新時(shí)間:2022-05-01 文章作者:未知 信息來源:網(wǎng)絡(luò) 閱讀次數(shù):

        以下是一個(gè)同時(shí)具有簡(jiǎn)單和復(fù)雜成員類型的例子。它顯示兩層引用。注意"Author"accssor元素的"href"屬性是對(duì)相應(yīng)具有"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>

        當(dāng)"Person"的值和"Address"的值是multi-reference時(shí),上面的形式是正確的。如果它們是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>
        如果添加一個(gè)限制,任意兩個(gè)人都不會(huì)有相同的地址,并且地址可以是街道或Email地址,一本書可以有兩個(gè)作者,編碼如下:

        <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>

        序列化可以包含對(duì)不在同一個(gè)資源的值的引用:

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

        以下是描述上面結(jié)構(gòu)的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>

        溫馨提示:喜歡本站的話,請(qǐng)收藏一下本站!

        本類教程下載

        系統(tǒng)下載排行

        主站蜘蛛池模板: 亚洲精品国产成人专区| 中文字幕人成人乱码亚洲电影| 亚洲v高清理论电影| 美女无遮挡拍拍拍免费视频| 亚洲精品无码永久在线观看| 久久国产精品免费一区二区三区| va亚洲va日韩不卡在线观看| 国产高清对白在线观看免费91| 亚洲国产精品综合久久一线| 搜日本一区二区三区免费高清视频 | 最近更新免费中文字幕大全| 伊人婷婷综合缴情亚洲五月| 国产自国产自愉自愉免费24区 | 人妻仑乱A级毛片免费看| 亚洲精品97久久中文字幕无码| 成人一级免费视频| 在线观看午夜亚洲一区| 国产一级高青免费| 亚洲国产精品无码久久一区二区 | 欧洲黑大粗无码免费| 亚洲视频在线观看2018| 最近最好的中文字幕2019免费| 亚洲av综合av一区二区三区| 亚洲国产香蕉人人爽成AV片久久 | 一个人免费高清在线观看 | 中文字幕在线观看亚洲日韩| 国产精品二区三区免费播放心| 国产亚洲精品欧洲在线观看| 亚洲综合伊人久久大杳蕉| 久久精品视频免费看| 波多野结衣亚洲一级| 免费a级毛片网站| 久草视频在线免费看| 亚洲熟妇无码一区二区三区| 亚洲熟伦熟女新五十路熟妇| 久久精品一本到99热免费| 亚洲国产av玩弄放荡人妇| 亚洲AV无码专区国产乱码电影| 日韩版码免费福利视频| 一级成人毛片免费观看| 亚洲高清在线mv|