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

2

5

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

Epirus answered 27/10, 2011 at 6:34 Comment(2)
Looks like you have a String input parameter that you didn't fill in, and the server doesn't interpret it as an empty string but just as a null, which is illegal for your SOAP service. Fix: set the string to something of length > 0.Ejectment
Check out the parameter name in webmethod and android request.addProperty("parameter name", pXmlString) should matchNihil
T
6

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

Turmel answered 16/2, 2013 at 6:5 Comment(0)
K
1

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

Kronstadt answered 24/2, 2015 at 14:8 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.