Skip to content Skip to sidebar Skip to footer

Android Ksoap Connection Timed Out When Using More Than One Device On Same Wireless Network :(

In short, my application works for longer than year now. I have 100000+ downloads, and only recently the problems with my soap web services started to occur. If two or more devices

Solution 1:

Turns out ksoap2 works well, and my code works well. After tracing ksoap call method, and sniffing html traffic I found out that, sometimes, server doesn't respond on my requests. This happens because server configuration was changed and now, when there are a lot of requests from the same IP address, server treats some of them as retransmission and ignores them. This problem has to be solved on server side.

Solution 2:

I have set the timeout in milliseconds like below while calling webservice

HttpTransportSEandroidHttpTransport=newHttpTransportSE(URL,6000);

(Note - make sure you are using latest ksoap2 library. if you want to download newest version of ksoap2 the follow below link to download)

https://oss.sonatype.org/content/repositories/ksoap2-android-releases//com/google/code/ksoap2-android/ksoap2-android-assembly/3.0.0-RC.4/

and click on ksoap2-android-assembly-3.0.0-RC.4.jar

Post a Comment for "Android Ksoap Connection Timed Out When Using More Than One Device On Same Wireless Network :("