<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    隨筆 - 5  文章 - 3  trackbacks - 0
    <2008年3月>
    2425262728291
    2345678
    9101112131415
    16171819202122
    23242526272829
    303112345

    常用鏈接

    留言簿(3)

    隨筆檔案

    文章檔案

    搜索

    •  

    最新評論

    閱讀排行榜

    評論排行榜

    To learn web service, we need to learn WSDL. This xml file defines the services that we deploy in our web service.
    Here, we get  a  example of WSDL.

    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions targetNamespace="http://localhost:8080/bookstore/services/BookSvc" 
      xmlns
    ="http://schemas.xmlsoap.org/wsdl/" 
      xmlns:apachesoap
    ="http://xml.apache.org/xml-soap" 
      xmlns:impl
    ="http://localhost:8080/bookstore/services/BookSvc" 
      xmlns:intf
    ="http://localhost:8080/bookstore/services/BookSvc" 
      xmlns:soapenc
    ="http://schemas.xmlsoap.org/soap/encoding/" 
      xmlns:tns1
    ="http://model.bookstore.com" 
      xmlns:wsdl
    ="http://schemas.xmlsoap.org/wsdl/" 
      xmlns:wsdlsoap
    ="http://schemas.xmlsoap.org/wsdl/soap/" 
      xmlns:xsd
    ="http://www.w3.org/2001/XMLSchema">
      
    <wsdl:types>
        
    <schema targetNamespace="http://model.bookstore.com" xmlns="http://www.w3.org/2001/XMLSchema">
          
    <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
          
    <complexType name="Book">
            
    <sequence>
              
    <element name="ISDN" nillable="true" type="xsd:string"/>
              
    <element name="name" nillable="true" type="xsd:string"/>
              
    <element name="page" type="xsd:int"/>
            
    </sequence>
          
    </complexType>
        
    </Schema>
      
    </wsdl:types>
      
    <wsdl:message name="addBookResponse">
      
    </wsdl:message>
      
    <wsdl:message name="addBookRequest">
        
    <wsdl:part name="book" type="tns1:Book"/>
      
    </wsdl:message>
      
    <wsdl:portType name="BookSvc">
        
    <wsdl:operation name="addBook" parameterOrder="book">
          
    <wsdl:input message="intf:addBookRequest" name="addBookRequest"/>
          
    <wsdl:output message="intf:addBookResponse" name="addBookResponse"/>
        
    </wsdl:operation>
      
    </wsdl:portType>
      
    <wsdl:binding name="BookSvcSoapBinding" type="intf:BookSvc">
        
    <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
        
    <wsdl:operation name="addBook">
          
    <wsdlsoap:operation soapAction=""/>
          
    <wsdl:input name="addBookRequest">
            
    <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://bookstore.com" use="encoded"/>
          
    </wsdl:input>
          
    <wsdl:output name="addBookResponse">
            
    <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8080/bookstore/services/BookSvc" use="encoded"/>
          
    </wsdl:output>
        
    </wsdl:operation>
      
    </wsdl:binding>
      
    <wsdl:service name="BookSvcService">
        
    <wsdl:port binding="intf:BookSvcSoapBinding" name="BookSvc">
          
    <wsdlsoap:address location="http://localhost:8080/bookstore/services/BookSvc"/>
        
    </wsdl:port>
      
    </wsdl:service>
    </wsdl:definitions>
     So many infomations in this file. But first of all, we need to understand the format of this file.
    To me, the defination of namespace is a problem.

    My qustions are: For xmlns, xmlns:tns1,xmlns:intf..., What do they mean? How to use them?


    After I refered to some articles in internet. I get the answer:
    每個namespace屬性都聲明了一個縮略語,用在文檔中。例如"xmlns:xsd"就為
    But I get another question that no one reply.
    refer

    '我們都知道,WSDL應該是格式正確的XML文檔。進一步,還應該把它看作一個Schema,因此,<definitions>元素中可以定義targetNamespace屬性,表示在這個元素下的所有元素都屬于這個目標名稱空間。

    xmlns表示缺省的名稱空間,...'


    So what's difference between 'targetnamespace' and default 'xmlns'?
    ?????????????????????????????????????????????????????????

    Reference:
    http://www.cnblogs.com/bjzhanghao/archive/2004/10/13/51614.html

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


    網站導航:
     
    主站蜘蛛池模板: 暖暖免费在线中文日本| 男女拍拍拍免费视频网站| 无码精品A∨在线观看免费| 亚洲欧洲日产国码在线观看| 91av视频免费在线观看| 亚洲日韩图片专区第1页| 99在线热视频只有精品免费| 亚洲高清不卡视频| 成年黄网站色大免费全看| 亚洲视频无码高清在线| 女人被男人躁的女爽免费视频| 亚洲熟妇av午夜无码不卡| 毛色毛片免费观看| 特级一级毛片免费看| 国产亚洲精久久久久久无码77777| 抽搐一进一出gif免费视频| 亚洲va中文字幕无码久久不卡| 精品一区二区三区免费毛片爱 | 三级黄色免费观看| 亚洲国产精品一区第二页| 99在线视频免费| 亚洲综合色一区二区三区| 国产乱弄免费视频| fc2免费人成在线| 久久久久亚洲AV无码麻豆| 歪歪漫画在线观看官网免费阅读| 国产精品亚洲五月天高清| 亚洲午夜福利717| a毛片基地免费全部视频| 狠狠入ady亚洲精品| 久久久青草青青亚洲国产免观| 免费h片在线观看网址最新| 亚洲第一成年免费网站| 国产成人精品日本亚洲专区| 99久久久国产精品免费牛牛| 亚洲免费网站观看视频| 国产亚洲AV手机在线观看| 永久免费在线观看视频| 黄网站色成年片大免费高清 | 卡一卡二卡三在线入口免费| www.av在线免费观看|