문제

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.

도움이 되었습니까?

해결책

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.

다른 팁

you can use the below lines to convert

SoapPrimitive result = (SoapPrimitive) envelope.getResponse();
Toast.makeText(getApplicationContext(),result.toString(), Toast.LENGTH_SHORT).show();
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top