I am working with a legacy Service whose return type extends ArrayList, and
which contains complex types.
e.g.
@XmlRootElement
@XmlType
class MyLine {
// Properties
}
@XmlRootElement
@XmlType
class MyList extends ArrayList< MyLine > {
// Methods
}
@WebService
@XmlSeeAlso(MyList.class)
class MyService {
MyList getList();
}
I'm using CXF to generate a WSDL on-the-fly from the Service, but the
response wrapper ignores MyList and instead refers directly to MyLine:
<xs:complexType name="getListResponse">
<xs:sequence>
<xs:element name="return" type="tns:myLine" minOccurs="0"
maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
Can anyone explain the correct combination of annotations and/or
configuration so that the generated WSDL refers to the correct return type?
--
View this message in context:
http://old.nabble.com/Problems-returning-class-derived-from-ArrayList-from-WebService-method-tp28412087p28412087.html
Sent from the cxf-user mailing list archive at Nabble.com.