unknown host exception & socket timeout
GoogleCodeExporter opened this issue · 3 comments
GoogleCodeExporter commented
I'm sorry my English is poor,I try my best to describe my issue
use the ksoap2-android-assembly-3.0.0 jar
Samsumg android 2.3.6
Sometime my code throw Unknown host or socket timeout exception,but sometime it
is normal.
when i was first install the apk, The probability is quite high
SoapObject request = new SoapObject(NAMESPACE, METHOD_REGISTER);
request.addProperty("userID", userId);
request.addProperty("password", userPass);
request.addProperty("macAddress", str_MacAddress);
request.addProperty("langVersion", language);
SoapSerializationEnvelope envelope = new
SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.setOutputSoapObject(request);
HttpTransportSE androidHttpTransport = new HttpTransportSE(URL, Timeout);
androidHttpTransport.call(Register_Phone_SOAP_ACTION, envelope);
Original issue reported on code.google.com by leeyao0...@gmail.com
on 5 Nov 2013 at 11:18
GoogleCodeExporter commented
Well.. the device is probably not online or the server you are connecting to
has a problem. This has nothing to do with ksoap2 android directly.
Original comment by mosa...@gmail.com
on 7 Mar 2014 at 4:58
GoogleCodeExporter commented
The project is migrating to github. If you believe this issue is still valid
and should be tracked please file a new issue at
https://github.com/simpligility/ksoap2-android/issues
Original comment by mosa...@gmail.com
on 7 Aug 2015 at 5:35
- Changed state: AwaitingContribution
GoogleCodeExporter commented
Hi,
I have face same exception.
socket timeout exception.
java.net.SocketTimeoutException: failed to connect (port 80) after 30000ms
sendto failed: ETIMEDOUT (Connection timed out) Fri Mar 07 19:51:49 GMT+05:30
2014
Really i don't know why this exception fired.
Original comment by birju.lo...@gmail.com
on 7 Mar 2014 at 2:42