android - i recieve an java.io.EOFeception error while using Soap protocol -



android - i recieve an java.io.EOFeception error while using Soap protocol -

i made client(android)-server(php) scheme client login (multiple time, not actual login) in server. when click login button , cool , right , welcome message received, when seek click login button 1 time again see "java.io.eofeception" error, , when seek click button 3rd time, right 1 time again , after 1 time again error , on..., think problem connection not closed yet. should ? here login button codes:

logi.setonclicklistener(new view.onclicklistener() { public void onclick(view v) { soapobject request = new soapobject(namespace, method_name_2); //soapobject request.addproperty("email", "xxxx@yahoo.com"); request.addproperty("password", "1234"); soapserializationenvelope envelope = new soapserializationenvelope(soapenvelope.ver11); envelope.setoutputsoapobject(request); httptransportse httptransport = new httptransportse(url); seek { httptransport.call(soap_action_2, envelope); object response = envelope.getresponse(); toast.maketext(getbasecontext(),response.tostring(),toast.length_long).show(); } grab (exception exception) { toast.maketext(getbasecontext(),exception.tostring(),toast.length_long).show(); } } });

i not believe have connection problem. believe problem on main thread. regardless, need set request within of asynctask. allows android create phone call on new background thread became required http calls after honeycomb. believe link provides illustration of implementation. how can create ksoap2 phone call in async task?

android soap

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

Set Up Of Common Name Of SSL Certificate To Protect Plesk Panel -