數據加載中……
          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 結合 閱讀(1724) 評論(0)  編輯  收藏


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


          網站導航:
           
          主站蜘蛛池模板: 蕉岭县| 亳州市| 靖远县| 田林县| 铁岭县| 泰州市| 玉环县| 乌苏市| 察隅县| 开化县| 三河市| 灵山县| 万荣县| 磴口县| 安多县| 阿巴嘎旗| 贵南县| 安丘市| 平利县| 崇仁县| 遵义市| 额尔古纳市| 昂仁县| 乌鲁木齐县| 青海省| 博客| 阿荣旗| 界首市| 新密市| 年辖:市辖区| 灵丘县| 伊通| 文化| 华池县| 德格县| 延川县| 平武县| 浦县| 陈巴尔虎旗| 二连浩特市| 大埔区|