<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應(yīng)該是格式正確的XML文檔。進(jìn)一步,還應(yīng)該把它看作一個Schema,因此,<definitions>元素中可以定義targetNamespace屬性,表示在這個元素下的所有元素都屬于這個目標(biāo)名稱空間。

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


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

    Reference:
    http://www.cnblogs.com/bjzhanghao/archive/2004/10/13/51614.html
    主站蜘蛛池模板: 国产成人亚洲综合在线| 99爱免费观看视频在线| 两个人看的www免费高清| 又粗又黄又猛又爽大片免费| 一个人看的免费观看日本视频www 一个人看的免费视频www在线高清动漫 | 久久亚洲日韩精品一区二区三区| 3344永久在线观看视频免费首页| 亚洲人成欧美中文字幕| 24小时免费直播在线观看| 日本视频免费观看| 亚洲精品mv在线观看 | 亚洲另类古典武侠| 免费成人av电影| 99久久99久久精品免费看蜜桃| 特级毛片A级毛片免费播放| 色播亚洲视频在线观看| 午夜亚洲国产成人不卡在线| 97精品免费视频| 九九久久精品国产免费看小说 | avtt天堂网手机版亚洲| 久久亚洲高清综合| 国产精品免费观看久久| 中文字幕无码一区二区免费| 日韩成人精品日本亚洲| 99ri精品国产亚洲| 亚洲区小说区图片区| 成人黄软件网18免费下载成人黄18免费视频| 国产成人精品日本亚洲专| 亚洲国产综合无码一区| 日本最新免费不卡二区在线| 99久9在线|免费| 最近中文字幕免费大全| 色窝窝亚洲av网| 亚洲熟妇少妇任你躁在线观看| 亚洲一区精品中文字幕| 国产AⅤ无码专区亚洲AV| 国产乱弄免费视频| 嫩草影院在线免费观看| AV大片在线无码永久免费| 美女视频黄的免费视频网页| 一级做a爱过程免费视频高清|