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

被折叠的 条评论
为什么被折叠?



