<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      享受代碼,享受人生

      SOA is an integration solution. SOA is message oriented first.
      The Key character of SOA is loosely coupled. SOA is enriched
      by creating composite apps.
        博客園  :: 首頁  :: 新隨筆  :: 聯系 :: 訂閱 訂閱  :: 管理

      webservice Quiz(Wsdl &Soap)

      Posted on 2006-01-14 12:29  idior  閱讀(5733)  評論(13)    收藏  舉報

       

        <wsdl:types />
        
      <wsdl:message name="AddSoapIn">
          
      <wsdl:part name="a" type="s:int" />
          
      <wsdl:part name="b" type="s:int" />
        
      </wsdl:message>
        
      <wsdl:message name="AddSoapOut">
          
      <wsdl:part name="AddResult" type="s:int" />
        
      </wsdl:message>
        
      <wsdl:portType name="MathServiceSoap">
          
      <wsdl:operation name="Add">
            
      <wsdl:input message="tns:AddSoapIn" />
            
      <wsdl:output message="tns:AddSoapOut" />
          
      </wsdl:operation>
        
      </wsdl:portType>
        
      <wsdl:binding name="MathServiceSoap" type="tns:MathServiceSoap">
          
      <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
          
      <wsdl:operation name="Add">
            
      <soap:operation soapAction="http://idior.cnblogs.com/Math/Add" style="rpc" />
            
      <wsdl:input>
              
      <soap:body use="encoded" namespace="http://tempuri.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
            
      </wsdl:input>
            
      <wsdl:output>
              
      <soap:body use="encoded" namespace="http://tempuri.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
            
      </wsdl:output>
          
      </wsdl:operation>
        
      </wsdl:binding>

       


      以上是一段wsdl的片斷,其中主要定義了一個Add方法。針對粗體字部分,我們得到以下使用該webservice的soap請求。

      POST /WebService1/Service1.asmx HTTP/1.1
      Host: localhost
      Content-Type: text/xml; charset=utf-8
      Content-Length: length
      SOAPAction: "http://idior.cnblogs.com/Math/Add"

      <?xml version="1.0" encoding="utf-8"?>
      <
      soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://tempuri.org/" xmlns:types="http://tempuri.org/encodedTypes" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
        <
      soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
          <
      tns:Add>
            <
      xsi:type="xsd:int">int</
      a>
            <
      xsi:type="xsd:int">int</
      b>
          </
      tns:Add>
        </
      soap:Body>
      </
      soap:Envelope>


      可以看出在WSDL中定義好的SoapAction被放在了Http的請求頭中, 為了調用Add這個WebService中的方法,SOAP包中粗體字部分發出的請求恰恰對應了WSDL中定義的operation的name---Add.

      那么對于下面的WSDL文件,我們又該發出怎樣的SOAP請求呢?

      <wsdl:types>
          
      <s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/">
            
      <s:element name="Add">
              
      <s:complexType>
                
      <s:sequence>
                  
      <s:element minOccurs="1" maxOccurs="1" name="a" type="s:int" />
                  
      <s:element minOccurs="1" maxOccurs="1" name="b" type="s:int" />
                
      </s:sequence>
              
      </s:complexType>
            
      </s:element>
            
      <s:element name="AddReponse">
              
      <s:complexType>
                
      <s:sequence>
                  
      <s:element minOccurs="1" maxOccurs="1" name="AddOperationResult" type="s:int" />
                
      </s:sequence>
              
      </s:complexType>
            
      </s:element>
          
      </s:schema>
        
      </wsdl:types>
        
      <wsdl:message name="AddOperationSoapIn">
          
      <wsdl:part name="parameters" element="tns:Add" />
        
      </wsdl:message>
        
      <wsdl:message name="AddOperationSoapOut">
          
      <wsdl:part name="parameters" element="tns:AddReponse" />
        
      </wsdl:message>
        
      <wsdl:portType name="MathServiceSoap">
          
      <wsdl:operation name="AddOperation">
            
      <wsdl:input message="tns:AddOperationSoapIn" />
            
      <wsdl:output message="tns:AddOperationSoapOut" />
          
      </wsdl:operation>
        
      </wsdl:portType>
        
      <wsdl:binding name="MathServiceSoap" type="tns:MathServiceSoap">
          
      <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
          
      <wsdl:operation name="AddOperation">
            
      <soap:operation soapAction="http://idior.cnblogs.com/Math/Add" style="document" />
            
      <wsdl:input>
              
      <soap:body use="literal" />
            
      </wsdl:input>
            
      <wsdl:output>
              
      <soap:body use="literal" />
            
      </wsdl:output>
          
      </wsdl:operation>
        
      </wsdl:binding>


      現在為了調用AddOperation(注意 Add改成AddOperation了)方法,你認為Soap Body中對應的那個元素名???是什么呢?

      POST /WebService1/Service1.asmx HTTP/1.1
      Host: localhost
      Content-Type: text/xml; charset=utf-8
      Content-Length: length
      SOAPAction: "http://idior.cnblogs.com/Math/Add"

      <?xml version="1.0" encoding="utf-8"?>
      <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
        
      <soap:Body>
          
      <??? xmlns="http://tempuri.org/">
            <a>int</a>
            <b>int</b>
          </???

        
      </soap:Body>
      </soap:Envelope>


      原理說明
      主站蜘蛛池模板: 艳妇乳肉豪妇荡乳xxx| 国产在线精品中文字幕| 国产一卡2卡三卡4卡免费网站| 丰满少妇内射一区| 国产福利酱国产一区二区| 欧美成人午夜在线观看视频| 换着玩人妻中文字幕| 国产精品男女爽免费视频| 精品2020婷婷激情五月| 亚洲欧洲一区二区精品| 亚洲日韩日本中文在线| 热久久美女精品天天吊色| 国产精品无码制服丝袜| 国产偷自一区二区三区在线| 99中文字幕精品国产| 国产午夜精品福利视频| 精品无码一区二区三区电影| 国产日产欧产系列| 日本亚洲欧洲无免费码在线| 国产精品不卡一区二区在线| 精品国产精品中文字幕| 国产精品国语对白露脸在线播放| 韩国主播av福利一区二区 | 亚洲乱码精品久久久久..| 九九热视频在线免费观看| 国产免费一区二区三区在线观看 | 亚洲第一极品精品无码久久| 男人狂桶女人高潮嗷嗷| 日本xxxx色视频在线播放| 人人妻人人做人人爽夜欢视频| 亚洲精品久久无码av片软件| 日本丰满的人妻hd高清在线| 久久人与动人物a级毛片| 久久久久国产精品熟女影院| 在线播放国产精品亚洲| 国产精品对白刺激久久久| 成人精品区| 成人午夜污一区二区三区| 性一交一乱一伦| 国产成人午夜福利院| 亚洲 欧美 中文 日韩aⅴ|