[英]generate java code from wsdl in android
I am using wsdl2code web tool for generating Java code for given wsdl. 我正在使用wsdl2code网络工具为给定的wsdl生成Java代码。 But , generated code has the different definition of the method from web-service.
但是,生成的代码与Web服务对方法的定义不同。 Method in wsdl contains the return type boolen but in wsdl2code generated code contains the same method with void return type.
wsdl中的方法包含返回类型boolen,但在wsdl2code中生成的代码包含具有void返回类型的相同方法。
I tried to create the client using axis2 plugin but that code is not working for android , many APIs are not resolved like rmi .. 我尝试使用axis2插件创建客户端,但该代码不适用于android,许多API都无法解析,例如rmi ..
What is the best way to generate java code from wsdl in android. 什么是从android中的wsdl生成Java代码的最佳方法。
I have already spent lot of time and didn't get any good solution so far. 我已经花了很多时间,到目前为止还没有得到任何好的解决方案。
如果使用的是ksoap2
,则可以通过在线Web工具EasyWSDL生成Java类。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.