开发者

webservice on android with ksoap2 too slow

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


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


You need to run it in an async task and break it down to ensure the result xml is not too big. The WSDL does not matter since it is not used.

In terms of processing the xml with something else rather than using the parsed SoapObject tree:

If you do that you might as well not use KSAOP2. And you probably wont find anything faster either since KSOAP2 is already very lightweight and fast. You just use a different stack to do the same thing.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜