隨筆-295  評(píng)論-26  文章-1  trackbacks-0
          type:表示所有的數(shù)據(jù)類型
          Message: 指明被調(diào)用的函數(shù)的參數(shù)
          Port:??? 指明服務(wù)的具體內(nèi)容,包括輸入輸出
          Binding:? 服務(wù)所綁定的協(xié)議

          addTwo Method invocation



          Method parameter(s)

          TypeValue
          int55
          int676

          Method returned

          int : "731"

          SOAP Request


          <?xml version="1.0" encoding="UTF-8"?>
          <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
              <S:Header/>
              <S:Body>
                  <ns2:addTwo xmlns:ns2="http://my/">
                      <mm>55</mm>
                      <gg>676</gg>
                  </ns2:addTwo>
              </S:Body>
          </S:Envelope>
          

          SOAP Response


          <?xml version="1.0" encoding="UTF-8"?>
          <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
              <S:Body>
                  <ns2:addTwoResponse xmlns:ns2="http://my/">
                      <return>731</return>
                  </ns2:addTwoResponse>
              </S:Body>
          </S:Envelope>
          


          <?xml version="1.0" encoding="UTF-8"?><!-- Published by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.1.2-hudson-112-M1. --><!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.1.2-hudson-112-M1. --><definitions xmlns:wsu="http://my/" xmlns:xsd="http://my/" name="firstService">
          <types>
          <xsd:schema>
          <xsd:import namespace="http://my/" schemaLocation="http://localhost:8080/ssServ/firstService?xsd=1"></xsd:import>
          </xsd:schema>
          </types>
          <message name="usrLogin">
          <part name="parameters" element="tns:usrLogin"></part>
          </message>
          <message name="usrLoginResponse">
          <part name="parameters" element="tns:usrLoginResponse"></part>
          </message>
          <message name="addTwo">
          <part name="parameters" element="tns:addTwo"></part>
          </message>
          <message name="addTwoResponse">
          <part name="parameters" element="tns:addTwoResponse"></part>
          </message>
          <message name="userLogin">
          <part name="parameters" element="tns:userLogin"></part>
          </message>
          <message name="userLoginResponse">
          <part name="parameters" element="tns:userLoginResponse"></part>
          </message>
          <portType name="first">
          <operation name="usrLogin">
          <input message="tns:usrLogin"></input>
          <output message="tns:usrLoginResponse"></output>
          </operation>
          <operation name="addTwo">
          <input message="tns:addTwo"></input>
          <output message="tns:addTwoResponse"></output>
          </operation>
          <operation name="userLogin">
          <input message="tns:userLogin"></input>
          <output message="tns:userLoginResponse"></output>
          </operation>
          </portType>
          <binding name="firstPortBinding" type="tns:first">
          <soap:binding transport="<operation name="usrLogin">
          <soap:operation soapAction=""></soap:operation>
          <input>
          <soap:body use="literal"></soap:body>
          </input>
          <output>
          <soap:body use="literal"></soap:body>
          </output>
          </operation>
          <operation name="addTwo">
          <soap:operation soapAction=""></soap:operation>
          <input>
          <soap:body use="literal"></soap:body>
          </input>
          <output>
          <soap:body use="literal"></soap:body>
          </output>
          </operation>
          <operation name="userLogin">
          <soap:operation soapAction=""></soap:operation>
          <input>
          <soap:body use="literal"></soap:body>
          </input>
          <output>
          <soap:body use="literal"></soap:body>
          </output>
          </operation>
          </binding>
          <service name="firstService">
          <port name="firstPort" binding="tns:firstPortBinding">
          <soap:address location="
          http://localhost:8080/ssServ/firstService"></soap:address>
          </port>
          </service>
          </definitions>

          從本質(zhì)上說:客戶端發(fā)一個(gè)請(qǐng)求即SOAP 請(qǐng)求頭,到指定的web service地址wsdl,然后經(jīng)過webservice的處理之后,返回一個(gè) SOAP 相應(yīng), 然后再在客戶端解析他們

          大盤預(yù)測(cè) 國富論
          posted on 2007-07-05 18:27 華夢(mèng)行 閱讀(169) 評(píng)論(0)  編輯  收藏

          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 金沙县| 交城县| 卢湾区| 正镶白旗| 克东县| 荣昌县| 吴江市| 库尔勒市| 万盛区| 大荔县| 缙云县| 仁化县| 灵山县| 新和县| 阿克陶县| 克什克腾旗| 比如县| 马龙县| 鹤庆县| 资兴市| 合山市| 嵊泗县| 临西县| 乌兰县| 潼关县| 文登市| 曲水县| 尉氏县| 元氏县| 桂林市| 临汾市| 天门市| 桦川县| 蒙自县| 义乌市| 焦作市| 昌宁县| 庆阳市| 财经| 武义县| 永修县|