XFire Quick Start
XFire is a next-generation java SOAP framework. XFire makes service oriented development approachable through its easy to use API and support for standards. It is also highly performant since it is built on a low memory StAX based model.
Quick Start
1. download and unzip xfire-all-1.0-M6a.zip
2. cd examples/book
3. maven war
小插曲1: 安裝Maven(第一次使用, 解壓后將bin目錄增加進PATH即可), maven 2.0不兼容1.x(沒進一步了解), 某些jar下載不到時, 將jar放進maven Repository(估計有方法disable download的)
4. deploy xfire-demo.war to Tomcat
Access the WSDL via: http://localhost:8080/xfire-demo/services/BookService?wsdl
創建SOAP客戶端
小插曲2: test case并沒有client測試程序(XFire找不到相關Util Class), 對于Hello World程序, copy paste是首選方法, wuyu的接觸xfire使用vs2005的J#, 自由的天空的web service 實踐(1)使用C#, 似乎使用MS的技術創建SOAP客戶端更簡單, 劉冬的應用AXIS開始Web 服務之旅(Java的, 可以參考)
1. use WSDL2Java
Java -Djava.ext.dirs=lib org.apache.axis.wsdl.WSDL2Java http://localhost:8080/xfire-demo/services/BookService?wsdl
2. BookCilentTest.java

2

3

4

5

6

7

8



9



10

11

12

13

14

15



16

17

18

19

20

21

22

23

posted on 2005-12-05 23:25 waterye 閱讀(2236) 評論(7) 編輯 收藏 所屬分類: Web Services