Jeremy, Are you using the latest 2.1-SNAPSHOT or the 2.0 release?
Also, JAXB or Aegis? This SHOULD be fixed in the latest 2.1-SNAPSHOT for JAXB: http://people.apache.org/repo/m2-snapshot-repository/org/apache/cxf/apache-cxf/2.1-incubator-SNAPSHOT/ Dan On Saturday 28 July 2007 19:32, Jeremy Isikoff wrote: > Yeah I had already tried something like that, but it doesnt seem to > work for me. Did the dev team say if returning generic Lists was > supposed to work like it does in xfire? Would it work better as an > array or a collection? Maybe you changed something else at the same > time that fixed the problem? When I add the annotation for the class > that is the "Item" in the List it just starts returning nothing I > think because a Item != List<Item> but I'm not really sure. > > > ----- Original Message ---- > From: Brad Harper <[EMAIL PROTECTED]> > To: [email protected] > Sent: Saturday, July 28, 2007 3:11:06 PM > Subject: Re: Returning Generic Lists Properly Typed? > > > Jeremy, I had the same issue until I annotated my interface methods > like this: > > @WebMethod(operationName = "getAllProducts") > @ResponseWrapper(targetNamespace = " > http://catalogService.service.gdservices.com<http://catalogservice.ser >vice.gdservices.com/>";, > > className = > "com.gdservices.service.thirdparty.ProductSummary") > @WebResult(targetNamespace = > "http://catalogService.service.gdservices.com > <http://catalogservice.service.gdservices.com/>";, > name = "products") > List<ProductSummary> getAllProducts(Long userId, Integer > detailLevel) throws ServiceException; > > Although this works, the CXF dev team told me this was an incorrect > usage of the annotations and they weren't sure how it worked. I'd be > interested to see if it works for you too. > > -bh > > On 7/28/07, Jeremy Isikoff <[EMAIL PROTECTED]> wrote: > > Sorry for all the activity, I'm on deadline and trying to get some > > stuff running quickly... > > I'm trying to return a List<Reports> where report is a javabean > > with some string properties. I can get the array back from the > > webservice but they all come back typed as Item instead of Report is > > there an annotation i need to make or something I need to do to make > > the collection come back correctly? Xfire claims to do this > > automatically for 1.5 generic collections. > > > > Jeremy M. Isikoff > > > > > > > > > > ____________________________________________________________________ > >________________ Pinpoint customers who are looking for what you > > sell. > > http://searchmarketing.yahoo.com/ > > ______________________________________________________________________ >______________ Choose the right car based on your needs. Check out > Yahoo! Autos new Car Finder tool. http://autos.yahoo.com/carfinder/ -- J. Daniel Kulp Principal Engineer IONA P: 781-902-8727 C: 508-380-7194 [EMAIL PROTECTED] http://www.dankulp.com/blog
