eclipse开发webservices

本文详细介绍使用XFire搭建Web服务的过程,包括配置项目、添加依赖库、创建WebService客户端和服务端点等步骤。

New Web Service Project
|
|
在Project Library Configuration 倒入xfire包选择1,3,5
|
|
在src目录下随便建个类(TestWS)在services.xml中配制<service><name>WSDemo</name><serviceClass>com.edu.test.WS.TestWs</serviceClass></service>
|
|
New J2EE WEB Project
|
|
点着新建的WEB项目Build Path-->Add Library-->MyEclipse Libraries-->XFire 1.2 HTTP Client Libearies
|
|
点着刚才的WEB项目,NEW-->other-->Web Service Client-->WSDL URL-->http://localhost:8080/HelloWorld/services/WSDemo?wsdl
|
|
finish
对这项目---》new ---》myeclipse---》webService---》next---》java interface and bean implementation class (导入接口)[Java bean implementation class only(导入类)]---》finish

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
备注
WebServices的不用手动的配制services.xml
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值