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

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

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

    隨筆 - 5  文章 - 3  trackbacks - 0
    <2007年1月>
    31123456
    78910111213
    14151617181920
    21222324252627
    28293031123
    45678910

    常用鏈接

    留言簿(3)

    隨筆檔案

    文章檔案

    搜索

    •  

    最新評(píng)論

    閱讀排行榜

    評(píng)論排行榜

    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:
    每個(gè)namespace屬性都聲明了一個(gè)縮略語,用在文檔中。例如"xmlns:xsd"就為
    But I get another question that no one reply.
    refer

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

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


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

    Reference:
    http://www.cnblogs.com/bjzhanghao/archive/2004/10/13/51614.html
    現(xiàn)在正在做的項(xiàng)目中,就有undo、redo的操作。使用的是java本身的undoManager。但是因?yàn)槭褂玫牡谌杰浖呀?jīng)把它封裝過了,所以用起來并不是直接使用java的undomanager。其間,遇到這樣的問題:有些操作不想被undo所管理,但是圖形上的變換卻總是會(huì)被listener加入到undo的edits中。想了很多辦法,包括繼承再封裝undomanager將edits傳出來保存,需要恢復(fù)的時(shí)候再設(shè)進(jìn)去、discard所有的edits、找尋第三方軟件封裝undoableEdit的方法,以使得操作不被undo....最后,用最簡單的方法解決問題:設(shè)置一個(gè)boolean變量,然后重載listener的方法,用這個(gè)變量來控制是否調(diào)用super.undoableEditHappened即可。 唉,真笨啊,用這么簡單的問題都能解決的,搞了老半天... ---------------------------- A ja A ja, fighting fighting
    posted @ 2007-01-17 13:24 托托姆 閱讀(434) | 評(píng)論 (0)編輯 收藏
    http://www.5ud.net 就是這個(gè)網(wǎng)站。
    posted @ 2007-01-15 13:04 托托姆 閱讀(363) | 評(píng)論 (0)編輯 收藏
    主站蜘蛛池模板: 成人午夜性A级毛片免费| 性盈盈影院免费视频观看在线一区| 亚洲国产一区二区三区青草影视| 亚洲免费视频在线观看| 久久免费香蕉视频| 婷婷精品国产亚洲AV麻豆不片 | 日本zzzzwww大片免费| 亚洲精品成a人在线观看| 国产无遮挡又黄又爽免费网站| 亚洲首页在线观看| 全免费a级毛片免费看无码| 成人免费av一区二区三区| 亚洲日本在线播放| 亚洲国产成人精品久久久国产成人一区二区三区综 | 免费99精品国产自在现线| 午夜亚洲国产精品福利| 亚洲av午夜成人片精品网站| 在线观看免费视频网站色| 亚洲妓女综合网99| 亚洲国产a级视频| 久久成人国产精品免费软件| 日本精品久久久久久久久免费| 亚洲第一页中文字幕| 亚洲精品A在线观看| 亚洲一级毛片免费在线观看| 免费国产草莓视频在线观看黄| 亚洲无限乱码一二三四区| 中文字幕亚洲一区二区va在线| 亚洲中文无码永久免费| 国产午夜无码精品免费看| 亚洲爆乳大丰满无码专区| 亚洲一区二区影院| 国产精品亚洲mnbav网站| 成人黄18免费视频| 2021精品国产品免费观看| 一本色道久久88—综合亚洲精品 | 亚洲国产成人手机在线电影bd| 中文字幕亚洲日本岛国片| WWW免费视频在线观看播放| 亚洲欧美一区二区三区日产| 97亚洲熟妇自偷自拍另类图片 |