我在使用 Ksoap 解析器进行肥皂解析时收到来自服务器的响应。现在我想从对象属性中获取值。
SoapObject obj = (SoapObject)envp.getResponse();
System.out.println("resultsString"+obj);
现在如果我想获得RID和警报总结我将如何获得
resultsStringanyType{RID=201309201377618; alertDetailPopulated=true; alertsId=0;
alertsSummary=anyType{}; destExpArrival=06:31; destSchArrival=06:30;
destinationStation=anyType{crsCode=BKJ; stationName=Beckenham Junction; };
expArrival=06:19; expDepart=06:20; otherAlertPresent=false; platformNo=3;
routeDetailPopulated=false; routeDetails=null; rsID=null; schArrival=06:19;
schDepart=06:19; serviceAlertPresent=false; toc=SE; tocName=Southeastern; trainID=2M06; trainLastReportedAt=null; }