Android怎么解析webservice返回的数据
展开全部
SoapObject result = (SoapObject) envelope.bodyIn;
SoapObject detail = (SoapObject) result.getProperty(METHOD_NAME);
for (int i = 0; i < detail.getPropertyCount(); i++) {
SoapObject mstr = (SoapObject) detail.getProperty(i);
String str_result = mstr .getProperty(0).toString();
list.add(str_result); //这个你要的
}
SoapObject detail = (SoapObject) result.getProperty(METHOD_NAME);
for (int i = 0; i < detail.getPropertyCount(); i++) {
SoapObject mstr = (SoapObject) detail.getProperty(i);
String str_result = mstr .getProperty(0).toString();
list.add(str_result); //这个你要的
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询