JacobVelarde / ksoap2-android

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

unknown host exception & socket timeout #174

Open GoogleCodeExporter opened 9 years ago

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

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