I am using Ksoap library to read xml from a webservice.Following is my code that i have used :
private static String SOAP_ACTION_Transaction = \"http://tempuri.o
SoapObject resultsRequestSOAP = (SoapObject) envelope.bodyIn;
String responseLocal = resultsRequestSOAP.toString();
Try the above instead of resultRequestSOAP = (SoapObject) envelope.getResponse();
if (envelope.bodyIn instanceof SoapFault) {
String str= ((SoapFault) envelope.bodyIn).faultstring;
Log.i("", str);
} else {
SoapObject resultsRequestSOAP = (SoapObject) envelope.bodyIn;
Log.d("WS", String.valueOf(resultsRequestSOAP));
}
Alternatively if your response is primitive try
SoapPrimitive response = (SoapPrimitive) envelope.getResponse();