try this
public static String GetWeather(String City) {
final String METHOD_NAME = "GetWeather";
final String SOAP_ACTION = "http://litwinconsulting.com/webservices/GetWeather";
final String NAMESPACE = "http://litwinconsulting.com/webservices/";
final String URL = "http://www.deeptraining.com/webservices/weather.asmx";
try {
SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
request.addProperty("City", City);
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(
SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.encodingStyle = SoapSerializationEnvelope.ENC;
envelope.setOutputSoapObject(request);
AndroidHttpTransport androidHttpTransport = new AndroidHttpTransport(
URL);
androidHttpTransport
.setXmlVersionTag("");
androidHttpTransport.debug = true;
androidHttpTransport.call(SOAP_ACTION, envelope);
if (envelope.getResponse() != null
&& !envelope.getResponse().equals("")) {
return envelope.getResponse().toString();
} else {
return null;
}
} catch (Exception e) {
return null;
}
}