javaandroidandroid-ksoap2

How to convert soap object into string object in android java


I am developing application in android.I need to covert the soap object response into String.How to convert the soap object into string object in android java. Thanks in advance.


Solution

  • This is what you do. Consider following is you Soap object.

     SoapObject response = (SoapObject)envelope.getResponse();
     String resp = response.toString();        
      log.e("Response :"+resp);
    

    I hope this helps.