Auto code generator to consume web services from Android

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-15 10:23:08

问题


I'm using ksoap2 to consume web services from Android projects. Everything is working fine but I miss some properties in the library which I think are pretty common.

In Visual Studio when adding a web service reference all the necessary code so you can consume the web service is created, and even more important, the necessary classes for the objects/types returned by the web service. The same can be done in XCode or in Eclipse when using Java EE.

The closer I get to this in Android is http://code.google.com/p/android-soap-enabler/wiki/FiveMinutesTutorial I tried but I had some problems and I let it go.

It's hard to believe that there is no standard way to solve this issue. I mean, I guess there exists so many Android Apps consuming web services, and no one has a better way than manually parse the xml response using the ksoap2 library? What finally makes it even weird, is that I didn't find anyone asking this question. Is it so strange what I'm asking? Am I the first one with this problem?

I would like to know if there is any tool/library/project/whatever which automatically creates the necessary code for consuming the web services.

来源:https://stackoverflow.com/questions/13016509/auto-code-generator-to-consume-web-services-from-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!