如何从 WSDL 文件生成 java 类 [英] How to generate java classes from WSDL file

查看:30
本文介绍了如何从 WSDL 文件生成 java 类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个 android 应用程序.我需要使用网络服务.我有一个 wsdl 文件,但我想将其转换为 java,以便我可以在我的 Java 程序中使用它的功能.有没有办法将 wsdl 文件转换成 Java?

I am working towards an android application. I need to use a web service. I have a wsdl file but I want to convert that into java so that I can use its functions in my Java programs. Is there any way of converting a wsdl file into Java?

推荐答案

是的,你可以使用:

Wsdl2java eclipse 插件

有了这个,您只需要提供 wsdl,就会自动为您生成 Java 类客户端.

With this all you will need is to supply the wsdl, and the client which is the Java classes will be automatically generated for you.

这篇关于如何从 WSDL 文件生成 java 类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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