在Eclipse中使用和测试Web服务 [英] Using and testing web services in Eclipse

查看:168
本文介绍了在Eclipse中使用和测试Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你能告诉最好的方式如何测试&在Eclipse中使用Web Services?



我对Web服务没有什么经验,也就是说,我使用了一个生成客户端存根的Apache Axis插件。



我现在不需要编写自己的Web服务,只能使用现有的Web服务。
我有Eclipse Java EE,我可以下载任何插件。
你会建议什么?

解决方案

为了测试Web服务,最好的工具是IMHO



你会发现一些视频剪辑,显示如何使用JAX-WS工具创建和部署自底向上和自上而下的Web服务 here


Can you tell the BEST way how to test & use Web Services in Eclipse ?

I had little experience with web services, that is, I used an Apache Axis plugin that generated the client stub.

I do not need to write my own web services right now, only use existing ones. I have Eclipse Java EE, I can download any plugin. What would you suggest?

解决方案

To test web services, the best tool is IMHO soapUI which is available as an eclipse plugin and is superior by far to any other tool I've used.

To use web services, it's worth noting that Eclipse has now a JAX-WS Tools Project (in the Web Tools Incubator) which is using the Apache CXF implementation (please, let Axis 2 die).

To install this project, point your Eclipse update site manager to The Eclipse Web Tools Platform (WTP) Project update site - http://download.eclipse.org/webtools/updates. When you access the update site, you should see the CXF Web Services (Incubator) feature available in the listing:

Once installed and configured (Window > Preferences... > Web Services > CXF 2.x Preferences), you will be able to use the CXF runtime to test web services (and / or to create a CXF Web Services Project, see image below even if this is not your first goal).

alt text http://www.corneliadavis.com/blog/wp-content/uploads/2009/08/creatingcxfproject1.JPG

You will find some video clips showing you how to create and deploy Bottom-Up and Top-Down Web services using JAX-WS Tools here.

这篇关于在Eclipse中使用和测试Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆