olupotd / ksoap2-android

Automatically exported from code.google.com/p/ksoap2-android
0 stars 0 forks source link

webservice on android with ksoap2 too slow!!! #76

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have an android application acessing an webservice( wsdl file) that returns a 
big result. 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!

Do you have some good suggestions?   Can you help me ?

http://stackoverflow.com/questions/6498563/webservice-on-android-with-ksoap2-too
-slow

Original issue reported on code.google.com by Samuel.C...@gmail.com on 4 Aug 2011 at 8:01

GoogleCodeExporter commented 9 years ago
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. 

Original comment by mosa...@gmail.com on 4 Aug 2011 at 10:16

GoogleCodeExporter commented 9 years ago

Original comment by mosa...@gmail.com on 4 Aug 2011 at 10:19