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.
Asked
Active
Viewed 2,841 times
2 Answers
1
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.

Nakul
- 1,313
- 19
- 26
0
you can use the below lines to convert
SoapPrimitive result = (SoapPrimitive) envelope.getResponse();
Toast.makeText(getApplicationContext(),result.toString(), Toast.LENGTH_SHORT).show();

Iman Marashi
- 5,593
- 38
- 51

user1517638
- 972
- 1
- 10
- 16