I am using Android version 4.4 And try o call a web service through HttpTransportSE but my server is not responding because of TLS is not enabled. how to enable please help. my code for http class is below :
String jsonData = "";
String NameSpace = "http://tempuri.org/";
String MethodNameGodown = "", SOAP_ACTION = "";
SoapPrimitive response = null;
MethodNameGodown = "MethodName";
SOAP_ACTION = NameSpace + MethodNameGodown;
SoapObject soapObject = new SoapObject(NameSpace, MethodNameGodown);
soapObject.addProperty("UserID", username);
soapObject.addProperty("Password", password);
soapObject.addProperty("ESN", "xym");
SoapSerializationEnvelope soapEnvelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
soapEnvelope.dotNet = true;
soapEnvelope.setOutputSoapObject(soapObject);
HttpTransportSE androidHttpTransport = new HttpTransportSE(sharedPreferences.getString("server_Middleware", ""), Constants.loginScreenTimeOut);
try {
androidHttpTransport.call(SOAP_ACTION, soapEnvelope);
response = (SoapPrimitive) soapEnvelope.getResponse();
} catch (IOException e) {
e.printStackTrace();
} catch (XmlPullParserException e) {
e.printStackTrace();
}
return response + "";