I make one C# web service to get data from SQL database And I call that webservice in to my android app but i got error

"java.net.SocketException: recvfrom failed: ECONNRESET (Connection reset by peer)"

Please give any suggestion. I try out all solution which given before on stack overflow

My code is 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");
0

There are 0 answers