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:


&lt;xs:complexType name="getListResponse"&gt;
  &lt;xs:sequence&gt;
    &lt;xs:element name="return" type="tns:myLine" minOccurs="0"
maxOccurs="unbounded"/&gt;
  &lt;/xs:sequence&gt;
&lt;/xs:complexType&gt;


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.

Reply via email to