<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    junhong

    WSDL Info

    A WSDL document defines services as collections of network endpoints, or ports. In WSDL, the abstract definition of endpoints and messages is separated from their concrete network deployment or data format bindings. This allows the reuse of abstract definitions: messages, which are abstract descriptions of the data being exchanged, and port types which are abstract collections of operations. The concrete protocol and data format specifications for a particular port type constitutes a reusable binding. A port is defined by associating a network address with a reusable binding, and a collection of ports define a service. Hence, a WSDL document uses the following elements in the definition of network services:

    Services are defined using six major elements:

    • types, which provides data type definitions used to describe the messages exchanged.
    • message, which represents an abstract definition of the data being transmitted. A message consists of logical parts, each of which is associated with a definition within some type system.
    • portType, which is a set of abstract operations. Each operation refers to an input message and output messages.
    • binding, which specifies concrete protocol and data format specifications for the operations and messages defined by a particular portType.
    • port, which specifies an address for a binding, thus defining a single communication endpoint.
    • service, which is used to aggregate a set of related ports.


    If the values being passed are part1=1, part2=2, part3=3, the request format would be as follows for each port:

    port1: GET, URL="http://example.com/o1/A1B2/3"
    port2: GET, URL="http://example.com/o1?p1=1&p2=2&p3=3
    port3: POST, URL="http://example.com/o1", PAYLOAD="p1=1&p2=2&p3=3"

    For each port, the response is either a GIF or a JPEG image.

    Example 6. GET and FORM POST returning GIF or JPG

    <definitions .... >
    <message name="m1">
    <part name="part1" type="xsd:string"/>
    <part name="part2" type="xsd:int"/>
    <part name="part3" type="xsd:string"/>
    </message>

    <message name="m2">
    <part name="image" type="xsd:binary"/>
    </message>

    <portType name="pt1">
    <operation name="o1">
    <input message="tns:m1"/>
    <output message="tns:m2"/>
    </operation>
    </portType>

    <service name="service1">
    <port name="port1" binding="tns:b1">
    <http:address location="http://example.com/"/>
    </port>
    <port name="port2" binding="tns:b2">
    <http:address location="http://example.com/"/>
    </port>
    <port name="port3" binding="tns:b3">
    <http:address location="http://example.com/"/>
    </port>
    </service>

    <binding name="b1" type="pt1">
    <http:binding verb="GET"/>
    <operation name="o1">
    <http:operation location="o1/A(part1)B(part2)/(part3)"/>
    <input>
    <http:urlReplacement/>
    </input>
    <output>
    <mime:content type="image/gif"/>
    <mime:content type="image/jpeg"/>
    </output>
    </operation>
    </binding>

    <binding name="b2" type="pt1">
    <http:binding verb="GET"/>
    <operation name="o1">
    <http:operation location="o1"/>
    <input>
    <http:urlEncoded/>
    </input>
    <output>
    <mime:content type="image/gif"/>
    <mime:content type="image/jpeg"/>
    </output>
    </operation>
    </binding>

    <binding name="b3" type="pt1">
    <http:binding verb="POST"/>
    <operation name="o1">
    <http:operation location="o1"/>
    <input>
    <mime:content type="application/x-www-form-urlencoded"/>
    </input>
    <output>
    <mime:content type="image/gif"/>
    <mime:content type="image/jpeg"/>
    </output>
    </operation>
    </binding>
    </definitions>

    4.2 How the HTTP GET/POST Binding Extends WSDL

    The HTTP GET/POST Binding extends WSDL with the following extension elements:

    <definitions .... >
    <binding .... >
    <http:binding verb="nmtoken"/>
    <operation .... >
    <http:operation location="uri"/>
    <input .... >
    <-- mime elements -->
    </input>
    <output .... >
    <-- mime elements -->
    </output>
    </operation>
    </binding>

    <port .... >
    <http:address location="uri"/>
    </port>
    </definitions>

    These elements are covered in the subsequent sections.

    4.3 http:address

    The location attribute specifies the base URI for the port. The value of the attribute is combined with the values of the location attribute of the http:operation binding element. See section 4.5 for more details.

    4.4 http:binding

    The http:binding element indicates that this binding uses the HTTP protocol.

    <definitions .... >
    <binding .... >
    <http:binding verb="nmtoken"/>
    </binding>
    </definitions>

    The value of the required verb attribute indicates the HTTP verb. Common values are GET or POST, but others may be used. Note that HTTP verbs are case sensitive.

    posted on 2007-01-28 16:24 junhong 閱讀(343) 評論(0)  編輯  收藏


    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    主站蜘蛛池模板: 四虎1515hm免费国产| 国产猛男猛女超爽免费视频| 久久精品免费一区二区三区| 免费v片在线观看品善网| 亚洲人成网站在线观看播放动漫| 夜夜爽妓女8888视频免费观看| 最近最好最新2019中文字幕免费| 国产亚洲美日韩AV中文字幕无码成人| 亚洲综合成人婷婷五月网址| AV大片在线无码永久免费| 久久精品国产亚洲AV麻豆~| 一级做a免费视频观看网站| 亚洲精品tv久久久久久久久久| 亚洲色大成网站WWW国产| 国产成人无码免费视频97| 亚洲av无码一区二区三区在线播放 | 国产一区二区三区免费| 国产成人麻豆亚洲综合无码精品| 亚洲中文字幕久久精品无码2021| 国产人成免费视频网站| 亚洲妓女综合网99| 99视频在线精品免费观看6| 亚洲av无码av在线播放| 亚洲阿v天堂在线2017免费| 人妖系列免费网站观看| 亚洲人成精品久久久久| 最近中文字幕电影大全免费版 | 久久久亚洲欧洲日产国码aⅴ| 国产免费不卡视频| 美女扒开屁股让男人桶爽免费| 男人的天堂亚洲一区二区三区| 国产成人无码精品久久久久免费| 久久精品国产精品亚洲艾| 免费看成人AA片无码视频羞羞网| 久久久久亚洲精品无码网址色欲| 亚洲一级特黄大片无码毛片| 久久精品免费一区二区| 一个人看的在线免费视频| 亚洲日本在线播放| 国产成人亚洲精品狼色在线| 两个人的视频高清在线观看免费 |