问题描述
用ksoap2调用webservice出现这个错,java.lang.ClassCastException:org.ksoap2.serialization.SoapPrimitive,求大神告知怎么解决SoapObjectresult=(SoapObject)envelope.getResponse();user.setUserId(result.getProperty("userId").toString());user.setUserName(result.getProperty("userName").toString());user.setUserIdentity(result.getProperty("userIdentity").toString());user.setUserIdNo(result.getProperty("userIdNo").toString());user.setUserMajor(result.getProperty("userMajor").toString());user.setUserPwd(result.getProperty("userPwd").toString());user.setUserEmail(result.getProperty("userEmail").toString());user.setUserPhone(result.getProperty("userPhone").toString());出错的地方我这么写的。
时间: 2024-12-13 14:44:36