[英]consuming SOAP web services over android
I have an java EE web server running struts 2, hibernate and spring frameworks
. 我有一个运行
struts 2, hibernate and spring frameworks
的java EE Web服务器。 The web application is simple online file storage solution with encryption. Web应用程序是具有加密功能的简单在线文件存储解决方案。 Now I want to expose my methods via a SOAP web service so that I can use that in my android application.
现在,我想通过SOAP Web服务公开我的方法,以便可以在我的android应用程序中使用它。 I have the WSDL for my web service.
我的Web服务有WSDL。 I followed a tutorial and come to know that we can use java
wsimport
tool to generate java classes from WSDL. 我遵循了一个教程,并且知道我们可以使用java
wsimport
工具从WSDL生成Java类。
Can I use that java classes to use in my android application So that my application can communicate with the remote server? 我可以在我的android应用程序中使用该java类,以便我的应用程序可以与远程服务器通信吗?
I am using hibernate for database operation so there would be hibernate entity classes that are returned. 我正在使用hibernate进行数据库操作,因此会有返回的hibernate实体类。 I am thinking I can have simple
POJO
classes in android application instead of hibernate entity classes. 我想我可以在android应用程序中有简单的
POJO
类,而不是休眠实体类。
You can have a look at this, I dont think it will work out of the box. 您可以看一下,我认为它不会立即可用。 KSoap2-android project library might help you .
KSoap2-android项目库可能会为您提供帮助。
http://www.ibm.com/developerworks/webservices/library/ws-android/index.html http://www.ibm.com/developerworks/webservices/library/ws-android/index.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.