隨筆-295  評論-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ā)一個請求即SOAP 請求頭,到指定的web service地址wsdl,然后經(jīng)過webservice的處理之后,返回一個 SOAP 相應(yīng), 然后再在客戶端解析他們

          大盤預(yù)測 國富論
          posted on 2007-07-05 18:27 華夢行 閱讀(170) 評論(0)  編輯  收藏

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


          網(wǎng)站導(dǎo)航:
           

          常用鏈接

          留言簿(2)

          隨筆分類(91)

          隨筆檔案(293)

          友情鏈接

          最新隨筆

          搜索

          •  

          積分與排名

          • 積分 - 162665
          • 排名 - 365

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 诸城市| 土默特右旗| 龙陵县| 江西省| 怀柔区| 垫江县| 阿拉尔市| 志丹县| 肥东县| 聂拉木县| 容城县| 宁化县| 凤翔县| 于都县| 湖南省| 文山县| 会理县| 宿松县| 霍邱县| 星子县| 闸北区| 江源县| 杂多县| 楚雄市| 九龙县| 九龙坡区| 自贡市| 运城市| 陇南市| 镇坪县| 郯城县| 青龙| 郓城县| 临汾市| 德阳市| 澳门| 赤壁市| 临湘市| 兰州市| 佛教| 信丰县|