Android Ksoap2 SoapFault - faultcode: 'soap:Client' faultstring: 'Server was unable to read request

Nikhil Virupakshi picture Nikhil Virupakshi · Oct 27, 2011 · Viewed 9.7k times · Source

i'm using eclipse to develop over android, i'm trying to connect to a .net webservice... when i'm calling a webmethod ,it is not able t fetch the data when checked in log cat it shows

**10-27 11:46:44.222: WARN/System.err(638): 02-22 12:41:08.008: W/System.err(860): SoapFault - faultcode: 'soap:Server' 
  faultstring: 'Server was unable to process request. 
  ---> Object reference not set to an instance of an object.' 
  faultactor: 'null' detail: org.kxml2.kdom.Node@413ecc90

Please help me out i am new to ksoap2 in Android.....

Answer

JNI_OnLoad picture JNI_OnLoad · Feb 16, 2013

This error comes when you have not provided the correct URL, Method Name or Soap Action of the web service where you have hosted your web service. Other reason might be related to your hosting of webservice on tempuri, check it carefully will solve your problem