On Monday 21 April 2008, stlecho wrote: > Ian, > > Unfortunately, Car is an interface and not a concrete class.
Yea, that would be the issue. JAXB doesn't support interfaces directly, just concrete beans. To get this to work, you would need to write an XmlJavaTypeAdapter to convert the Car objects to a concrete CarImpl or something that JAXB can deal with. That said, I think that will only work with 2.1. We actually have a sample that shows the TypeAdapters in the 2.1 kits in the sample/java_first_jaxws directory. Dan > > Regards, Stefan Lecho. > > ianroberts wrote: > > stlecho wrote: > >> Hi, > >> > >> I would like to generate a WSDL for the following method: "public > >> List<Car> > >> getAllCars();". > > > > This should work as you expect, so long as Car is a concrete class > > and not an interface. If it's an interface things get more > > difficult, but if you search for "interface" in the list archives > > you should find several threads to help. > > > > Ian > > > > -- > > Ian Roberts | Department of Computer Science > > [EMAIL PROTECTED] | University of Sheffield, UK -- J. Daniel Kulp Principal Engineer, IONA [EMAIL PROTECTED] http://www.dankulp.com/blog