使用android的ksoap连接 [英] ksoap connection using android

查看:105
本文介绍了使用android的ksoap连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从Android应用程序调用2个soap操作。





它的工作时间。但是当我再次打开应用程序时,它就能与服务器建立SOAP连接。





这个问题如何解决?

i need to call 2 soap operation from an android application.


ist time it works. but when i open the application again it canot establish the soap connection with server.


how this problm solve???

推荐答案

尝试在AsyncTask中使用kso​​ap连接块,无法从主活动访问Web服务,因为android会阻止这类需要很长时间的工作。
Try using ksoap connection block in AsyncTask , You can not reach the web service from main activity because android prevents these kind of work which can need long time.


这篇关于使用android的ksoap连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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