Server-side:
axis2 webService
Android-side:
ksoap2-android-assembly-2.5.4-jar-with-dependencies
BUG CODE:
SoapObject so = request.getProperty(1);
Compiler report:
03-28 03:57:23.196: E/AndroidRuntime(2067): Caused by: java.lang.ClassCastException: org.ksoap2.serialization.SoapPrimitive
revise:
Object so = request.getProperty(1);
本文介绍了一种解决方案,用于解决在Android客户端使用KSOAP2调用Axis2 WebService时出现的ClassCastException错误。通过将SoapObject转换为更通用的对象类型,成功避免了异常并实现了服务调用。
5万+

被折叠的 条评论
为什么被折叠?



