`
tianshibaijia
  • 浏览: 1128799 次
文章分类
社区版块
存档分类
最新评论

eclipse开发webservices

 
阅读更多

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
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics