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

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

        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>

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

        本類教程下載

        系統下載排行

        主站蜘蛛池模板: 国产精品亚洲综合天堂夜夜| 亚洲精品自在线拍| 美女黄色免费网站| 日韩精品免费电影| 亚洲精品国产av成拍色拍| 久久久久国产精品免费免费搜索| 亚洲欧洲日产国码二区首页| 中文字幕亚洲免费无线观看日本| 久久国产亚洲高清观看| 最近中文字幕2019高清免费| 亚洲成AV人综合在线观看| 在线视频观看免费视频18| 亚洲国产成人无码AV在线影院| 免费看美女被靠到爽的视频| 日本激情猛烈在线看免费观看| 亚洲精品无码成人片在线观看| 最近更新免费中文字幕大全| 亚洲码国产精品高潮在线| 午夜精品射精入后重之免费观看| 亚洲人成在线播放网站岛国| 国产精品久久久久久久久免费| 男人天堂2018亚洲男人天堂| 又大又粗又爽a级毛片免费看| a高清免费毛片久久| 亚洲AV日韩AV永久无码绿巨人| 日本高清在线免费| 亚洲av日韩aⅴ无码色老头| 亚洲伊人成无码综合网| 嫩草影院在线播放www免费观看| 亚洲成人一级电影| 日本a级片免费看| a级毛片在线视频免费观看| 亚洲人6666成人观看| 四虎影视精品永久免费| 国产自国产自愉自愉免费24区 | 99精品视频在线观看免费| 亚洲香蕉免费有线视频| 国产免费观看网站| 美女内射无套日韩免费播放| 亚洲午夜理论片在线观看| 亚洲性猛交XXXX|