I am using calling webservice using ksoap2 in android
I am getting this error
SoapFault - faultcode: 'soap:Server' faultstring: 'Server was unable to process request. ---> The parameterized query
java.lang.ClassCastException: org.ksoap2.SoapFault cannot be cast to org.ksoap2.serialization.SoapObject
I am adding parameter using propertyInfo
PropertyInfo fromProp =new PropertyInfo();
fromProp.setName("uname");
fromProp.setValue("test");
fromProp.setType(String.class);
request.addProperty(fromProp);
PropertyInfo toProp =new PropertyInfo();
toProp.setName("pwd");
toProp.setValue("test");
toProp.setType(String.class);
request.addProperty(toProp);
request shows up like this
validLogin{uname=simar; pwd=simar; }
Things i have tried
1) Commenting and uncommenting of following line
envelope.dotNet = true;
2) No server side error as without parameter the connection can be done and get the dummy result
3) Even Tried this
request.addProperty("uname","simar");
request.addProperty("pwd","simar");
I merged knowledge from Your prev post and from this one. You Have problem with call parameters (fe. lack of slash on the end of namespace "http://23.253.164.20:8096/") and with lack of namespace on parameters uname and pwd. I really recommend to use SoapUI to compare correct request with what You have in transport.requestDump.
Working code: