Wednesday 5 June 2013

Caused by: java.lang.ClassCastException: org.ksoap2.serialization.SoapPrimitive .soap webservice in android

Hi,

Recently while dealing with the soap web service in android i found this error.Reason for this error is my soap service returns the string value   but i am trying to receive the value as SoapObject.
Like
SoapObject responce=(SoapObject)envelope.getResponce();
It causes the error .
How to solve this error
          for solving this error replace the above code like
            Object responce=envelope.getResponse();


Hope it solves your problem