Web服务在Android上ksoap2太慢 [英] webservice on android with ksoap2 too slow

查看:321
本文介绍了Web服务在Android上ksoap2太慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Android应用程序acessing返回一个大的结果的web服务。
返回类型,web服务C#服务器上,是类型的XmlElement。
我的问题是,当我把它用ksoap2在Android应用程序,它需要花费大量的时间来处理的结果。
由于结果是XML,我怎么能强迫KSOAP给我一个字符串结果没有处理成一个SoapObject?
或者有另一种方式来更快速地处理结果?

I have an android application acessing an webservice that returns a big result. The return type, on the webservice C# server, is the type XmlElement. My problem is, when I call it using ksoap2 on the android app, it takes a lot of time to process the result. As the result is a xml, how can I force the ksoap to give me an String result without process it into a SoapObject? Or there is another way to process the result more quickly?

谢谢,我的英语不好对不起

Thanks and sorry for my bad english

推荐答案

我猜HTTP GET或POST和SAX XML解析器可以不用香皂使用。你会得到更快的响应速度,更小尺寸的应用

I guess http get or post and sax xml parser can be used without soap. You will get faster response, smaller app size.

这篇关于Web服务在Android上ksoap2太慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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