用于生成 Web 服务的客户端存根:使用什么库?

发布于 2024-08-18 16:24:49 字数 178 浏览 1 评论 0原文

从 WSDL 文件生成客户端存根的首选方法是什么? 我尝试了 Axis2 插件,它可以完成任务。 WTP for eclipse 也可以生成客户端存根吗? 什么是更好的解决方案?

您能解释一下为什么推荐这样或那样的方式吗?

ps Apache CXF 是否有用于可视化生成客户端存根的 Eclipse 插件?

What is the preferred way to generate the client stub from a WSDL file?
I tried an Axis2 plugin, it does the job.
Can WTP for eclipse generate the client stub as well?
What is a better solution?

Can you explain why you recommend such or such a way?

p.s. Does Apache CXF have Eclipse plugins for visual generation of client stub?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

余罪 2024-08-25 16:24:49

如果 Web 服务不会发生太大变化,您可以使用您最喜欢的 IDE(Eclipse、IntelliJ 等)来执行此操作;例如,当您尝试使用其他提供商提供的定义明确的 Web 服务时。

但是,当您开发自己的 Web 服务时,您可能更喜欢从 Java 代码创建 WSDL。然后您可以使用Web服务框架提供的工具。例如,Apache CXF 是一个出色的 Web 服务框架,除了提供此功能外,还提供了更多功能。

You can use your favorite IDE (Eclipse, IntelliJ, etc.) to do this if the Web Service is not going to be changed so much; for example, when you are trying to use a well-defined web service from another provider.

But when you are developing a Web Service of your own, you may prefer to create the WSDL from Java Code. Then you can use the tools that web service frameworks provide. For example, Apache CXF is a great Web Service framework that provides this functionality in addition to a lot more.

抹茶夏天i‖ 2024-08-25 16:24:49

是的,WTP 可以为您生成 stup。尝试创建一个新的 Web Service 项目。

Yes, WTP can generate the stup for you. Try to create a new Web Service project.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文