[求助]关于webservice返回vector类型的问题,请高手指点
各位大虾,小弟用java写的服务器端和客户端,需要从服务器端返回Vector类型的数据,
Vector中包含的是自定义的JavaBean,实现Serializable接口
但是运行时发生异常
java.io.IOException: No serializer found for class ccmf.search.SearchExperienceD
TO in registry org.apache.axis.encoding.TypeMappingDelegate@1db6942
部分wsdl如下:
- <wsdl:types>
- <schema targetNamespace="http://xml.apache.org/xml-soap" xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
- <complexType name="Vector">
- <sequence>
<element maxOccurs="unbounded" minOccurs="0" name="item" type="xsd:anyType" />
</sequence>
</complexType>
</schema>
</wsdl:types>
- <wsdl:message name="getSearchExperienceResultResponse">
<wsdl:part name="getSearchExperienceResultReturn" type="apachesoap:Vector" />
</wsdl:message>
请问,我应该怎样序列化包含在返回Vector中的自定义类型,谢谢指点