.NET Web service called from android,gives java.net.SocketException: recvfrom failed:ECONNRESET (Connection reset by peer) -


i make 1 c# web service data sql database , call webservice in android app got error

"java.net.socketexception: recvfrom failed: econnreset (connection reset peer)"

please give suggestion. try out solution given before on stack overflow

my code below:

soapobject request = new soapobject(wsdl_target_namespace,                     operation_name);  // headerproperty hp=new headerproperty("connection", // "keep-alive"); // hp.setvalue("close"); propertyinfo propertyinfo1; propertyinfo1 = new propertyinfo(); propertyinfo1.settype(string.class); propertyinfo1.setname("paycode"); propertyinfo1.setvalue(paycode); request.addproperty(propertyinfo1);  envelope = new soapserializationenvelope(soapenvelope.ver12); envelope.dotnet = false; envelope.implicittypes = true; envelope.bodyout = request; envelope.setoutputsoapobject(request); new httptransportse(soap_address).getserviceconnection().setrequestproperty("connection", "close"); httptransport = new httptransportse(soap_address); httptransport.debug = true;  log.e("envelope_body", "" + envelope.bodyout.tostring());  // system.setproperty("http.keepalive", "false"); log.e("===============>", "background...." + paycode);  httptransport.call(soap_action, envelope); // error comes here httptransport.getserviceconnection().setrequestproperty("connection", "close"); 


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -