數據加載中……
          wsdl文檔結構分析
          <?xml version="1.0"?>
          <definitions name="StockQuote"
              targetNamespace="http://example.com/stockquote.wsdl"
              xmlns:tns="http://example.com/stockquote.wsdl"
              xmlns:xsd1="http://example.com/stockquote.xsd"
              xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
              xmlns="http://schemas.xmlsoap.org/wsdl/">

              <!-- 獨立與機器和語言的類型定義 -->
              <types>
                  <schema targetNamespace="http://example.com/stockquote.xsd"
                      xmlns="http://www.w3.org/2000/10/XMLSchema">
                      <element name="TradePriceRequest">
                          <complexType>
                              <all>
                                  <element name="tickerSymbol" type="string" />
                              </all>
                          </complexType>
                      </element>
                      <element name="TradePrice">
                          <complexType>
                              <all>
                                  <element name="price" type="float" />
                              </all>
                          </complexType>
                      </element>
                  </schema>
              </types>
              <!-- 包括函數參數(輸入與輸出分開)或文檔描述 -->
              <message name="GetLastTradePriceInput">
                  <part name="body" element="xsd1:TradePriceRequest" />
              </message>

              <message name="GetLastTradePriceOutput">
                  <part name="body" element="xsd1:TradePrice" />
              </message>

              <!-- 引用消息部分中消息定義來描述函數簽名(操作名、輸入參數、輸出參數) -->
              <portType name="StockQuotePortType">
                  <operation name="GetLastTradePrice">
                      <input message="tns:GetLastTradePriceInput" />
                      <output message="tns:GetLastTradePriceOutput" />
                  </operation>
              </portType>

              <!-- PortTypes部分的每一操作在此綁定實現 -->
              <binding name="StockQuoteSoapBinding" type="tns:StockQuotePortType">
                  <!-- 說明了消息樣式是rpc(document),并且網絡應用協議是HTTP -->
                  <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
                  <!--  -->
                  <operation name="GetLastTradePrice">
                      <soap:operation
                          soapAction="http://example.com/GetLastTradePrice" />
                      <input>
                          <!-- 說明輸入輸出元素均使用了字面編碼。use的值必須是literal -->
                          <soap:body use="literal" />
                      </input>
                      <output>
                          <soap:body use="literal" />
                      </output>
                  </operation>
              </binding>

              <!-- 確定每一綁定的端口地址 -->
              <service name="StockQuoteService">
                  <documentation>My first service</documentation>
                  <port name="StockQuotePort" binding="tns:StockQuoteBinding">
                      <soap:address location="http://example.com/stockquote" />
                  </port>
              </service>

          </definitions>

          posted on 2008-03-20 16:27 java flex 結合 閱讀(1729) 評論(0)  編輯  收藏


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


          網站導航:
           
          主站蜘蛛池模板: 文化| 龙川县| 福贡县| 阳城县| 西藏| 祁连县| 丽水市| 蓝田县| 台州市| 朝阳市| 巫山县| 赞皇县| 山西省| 柳林县| 康平县| 郸城县| 璧山县| 定南县| 云梦县| 金山区| 丰镇市| 色达县| 商城县| 扬州市| 彝良县| 中方县| 河南省| 鄂托克旗| 米林县| 龙陵县| 江西省| 洛浦县| 苍山县| 西吉县| 商丘市| 吉首市| 仁化县| 卓尼县| 柳林县| 安吉县| 高淳县|