在Eclipse中从WSDL生成Web服务Java类 [英] Generate web service java class from WSDL in eclipse

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

问题描述

我想从Eclipse(Kepler版本)中的WSDL生成Web服务Java类.

I would like to generate web service java class from WSDL in eclipse (Kepler version).

使用的方法:
1)右键单击WSDL文件
2)选择"Crete Web Service"
3)选择开发客户端"级别(作为附件图像)
4)完成

Method used:
1) Right click WSDL file
2) Select "Crete Web Service"
3) Select "Develop client" level (as Image attached)
4) Finish

我能够生成 xxxProxy.java xxxResponse.java 类.但是,我无法生成调用Web服务所需的 xxxLocator.java xxxSoapBindingStub.java .

I able to generate xxxProxy.java, xxxResponse.java class. However, I failed to generate xxxLocator.java and xxxSoapBindingStub.java which are needed to call web service.

感谢您提供有关缺少步骤的建议(如果有的话)

Appreciate for any advice on missing steps(if any)

推荐答案

可能的解决方案是将Eclipse Kepler版本升级为Neon或Oxygen,然后将项目导入工作区并在wsdl文件上执行以下操作.

Possible solution for you might be upgrading your Eclipse Kepler Version to Neon or Oxygen, After that import your project into workspace and do following on wsdl file.

Right Click ***.wsdl --> Web Services --> Generate Client

这篇关于在Eclipse中从WSDL生成Web服务Java类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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