eclipse wsdl java文件,如何使用Eclipse将WSDL转换为Java类?

本文指导新手如何使用Eclipse JEE Kepler中的工具将WSDL文件自动转换为Java类,并提供创建WebService客户端的详细步骤。提到可以利用wsimport命令行工具进行手动操作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

I have a WSDL file (or, more precisely, its URL). I need to convert it to Java classes. I also need to provide tests for the web service it describes.

I'm new to web services, so could someone tell me how to convert WSDLs to Java?

I use Eclipse JEE Kepler. Maybe there are some plugins to do this automatically?

解决方案

In Eclipse Kepler it is very easy to generate Web Service Client classes,You can achieve this by following steps .

RightClick on any Project->Create New Other ->Web Services->Web Service Client->Then paste the wsdl url(or location) in Service Definition->Next->Finish

You will see the generated classes are inside your src folder.

NOTE :Without eclipse also you can generate client classes from wsdl file by using wsimport command utility which ships with JDK.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值