Eclipse中開發webservice

eclipse開發webservie                                         java

1.下載axis2相關架包----war,bin是必須的; web

   axis2的eclipse插件(2個)-http://apache.dataguru.cn/axis/axis2/java/core/ apache

org.apache.axis2.eclipse.codegen.plugin_0.0.0.SNAPSHOT.jar        org.apache.axis2.eclipse.service.plugin_0.0.0.SNAPSHOT.jar


2.安裝eclipse的axis2插件 服務器

    將a中的兩個jar文件放入eclipse路徑下面的plugins文件夾下面,重啓eclipse便可。

    成功標誌-----new,出現Axis2 Wizards選項。 eclipse


3.在eclipse中配置axis2的運行環境 插件

    Windows---->preferences---->Web Service---->Axis2 Preferences,選中Axis2 Runtime將a中下載的
    war(事先解壓)路徑選中便可。


4.編寫服務器上面的web項目,而後建立webservice 注意: code

    Service implementation: 須要提供出來的類----web項目的src目錄下面
    Web service runtime: Apache Axis2
    建立完畢以後,在地址欄中輸入 http://localhost:8080/項目名稱 獲得服務的wsdl地址,如:
    http://localhost:8080/secondWebService/services/ShowDate?wsdl
    這個地址,下面的客戶端須要用到。


5.建立webservice client ip

    注意:
    service definition:填寫d步驟中獲得的地址:如 http://localhost:8080/secondWebService/services/ShowDate?wsdl
    右側滑條滑到Test client處;

    Web service runtime: Apache Axis2 開發

相關文章
相關標籤/搜索