代码中,将某一对象转换成String后, 此对象类型转换为String , 不再是对象。
detail = (SoapObject) envelope.getResponse();
Tso = detail;
Log.d(TAG, "打印返回数据: " + detail.toString());
if(Tso == null){
Log.d("LL", "服务器未知错误");
}else{
if(Tso.getProperty("status").equals("OK")){
Log.d(TAG, "userId = " + Tso.getProperty("userId"));
Log.d(TAG, "desKey = " + Tso.getProperty("desKey"));
}
}