我正在尝试创建一个Android应用来从Web服务服务器获取数据。这是我的代码:
SoapObject results = (SoapObject) envelope.bodyIn;
以下字符串是我的结果。如何从soap对象获取userid,usersname,accountname,accountid和accounttype?
LogInResponse{LogInResult=anyType{schema=anyType{element=anyType{complexType=anyType{choice=anyType{element=anyType{complexType=anyType{sequence=anyType{element=anyType{}; element=anyType{}; element=anyType{}; element=anyType{}; element=anyType{}; }; }; }; }; }; }; }; diffgram=anyType{DocumentElement=anyType{user=anyType{userid=""; accountid=; accountname=; usersname=; accounttype=; }; }; }; }; }
答案 0 :(得分:0)
你只需要说getProperty(propertyname) 细节: http://kobjects.org/ksoap2/doc/api/org/ksoap2/serialization/SoapObject.html