1

I'm using ksoap2 for my android project and it works great. I've succeeded in connecting to distant server but I currently have a problem when I want to set a timeout to my androidhttptransport.

Is there a clean way (maybe an attribute to set?) to deal with it?

I've found this same question there but it's not very detailed. Does someone have any detailed answer to this problem?

Thanks in advance for help!

Romain

Community
  • 1
  • 1
Romain Piel
  • 11,017
  • 15
  • 71
  • 106
  • Ok I did what ZZ Coder said on the other thread. I'm not sure if it's the neatest way to deal with connection exception but it works. Let's say you have an event to launch your soap request. Then do it in a new thread and build a timer to watch it. I can post code if you need. Cheers ;) – Romain Piel Jul 30 '10 at 14:58
  • Found a more elegant way to test connection! it's written there : http://stackoverflow.com/questions/1560788/how-to-check-internet-access-on-android-inetaddress-never-timeouts – Romain Piel Aug 02 '10 at 09:10

1 Answers1

0

Take a look at this thread: KSoap Request Timeout?

Community
  • 1
  • 1
Andreas Mattisson
  • 1,051
  • 2
  • 19
  • 39