數(shù)據(jù)加載中……
          wsdl文檔結(jié)構(gòu)分析
          <?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>
              <!-- 包括函數(shù)參數(shù)(輸入與輸出分開)或文檔描述 -->
              <message name="GetLastTradePriceInput">
                  <part name="body" element="xsd1:TradePriceRequest" />
              </message>

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

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

              <!-- PortTypes部分的每一操作在此綁定實現(xiàn) -->
              <binding name="StockQuoteSoapBinding" type="tns:StockQuotePortType">
                  <!-- 說明了消息樣式是rpc(document),并且網(wǎng)絡(luò)應(yīng)用協(xié)議是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 結(jié)合 閱讀(1724) 評論(0)  編輯  收藏


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


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 花垣县| 平山县| 桂林市| 廉江市| 饶阳县| 明光市| 沅陵县| 龙州县| 双牌县| 平昌县| 丰都县| 丹阳市| 环江| 中牟县| 侯马市| 宾阳县| 灵璧县| 宁蒗| 光山县| 新营市| 克山县| 南召县| 漾濞| 乌拉特中旗| 维西| 临安市| 慈利县| 博客| 景宁| 太谷县| 黎川县| 长乐市| 高青县| 蒙城县| 嘉祥县| 延寿县| 彰化县| 临西县| 盖州市| 东乌珠穆沁旗| 临猗县|