由于最近公司采用Web Services技术做企业应用集成(EAI)相关的项目,有关技术人员反应采用Axis不能传递用户自定义对象。
错误信息大体如下:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.io.IOException: No serializer found for class com.whcyit.axis.SimpleObject in registry org.apache.axis.encoding.TypeMappingDelegate@da3a1e
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.io.IOException: No serializer found for class com.whcyit.axis.SimpleObject in registry org.apache.axis.encoding.TypeMappingDelegate@da3a1e
at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1429)
对于Web Services的接触已经是4年多前的事情了,基本上对于Web Services只是存在一个概念了。抱着疑问,决定自己试一下到底怎么回事?
最后通过2个多小时的测试,终于把问题解决了。解决方式如下: !--判断阅读权限-->!--判断是否已经扣点--> |