Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

android

ksoap2

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.....

like image 616
Nikhil Virupakshi Avatar asked Oct 27 '11 06:10

Nikhil Virupakshi


2 Answers

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

like image 131
JNI_OnLoad Avatar answered Oct 21 '22 03:10

JNI_OnLoad


In my case the problem was the NameSpace, I was missing the "/" at the end of the namespace.

like image 40
RADU Avatar answered Oct 21 '22 03:10

RADU