數據加載中……
          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)  編輯  收藏


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


          網站導航:
           
          主站蜘蛛池模板: 商都县| 罗田县| 海门市| 图木舒克市| 金溪县| 凤庆县| 稷山县| 新巴尔虎右旗| 准格尔旗| 建德市| 淮安市| 肇东市| 卢湾区| 淳安县| 房产| 玛沁县| 德昌县| 博兴县| 德化县| 津南区| 阳江市| 宜川县| 密云县| 会理县| 砀山县| 彰化县| 乃东县| 密山市| 迭部县| 泰宁县| 象州县| 板桥市| 正镶白旗| 丽江市| 酉阳| 高邑县| 喀喇沁旗| 松阳县| 呼玛县| 逊克县| 泰来县|