On Sunday 29 July 2007 01:29, Jeremy Isikoff wrote: > I'm using the 2.0 release and JAXB. I'd try the 2.1 if that fixes it > but im not good enough at this stuff to figure out how to do a build > from the source yet. When is that expected to be released as a jar?
We're hoping to start the release process tomorrow. (It will be released as 2.0.1 since it's just bug fixes at this point) That's kind of why I'd like to know if it fixes the problems for you. I'd like to make sure 2.0.1 will work. Dan > ----- Original Message ---- > From: Daniel Kulp <[EMAIL PROTECTED]> > To: [email protected] > Cc: Jeremy Isikoff <[EMAIL PROTECTED]> > Sent: Saturday, July 28, 2007 9:49:51 PM > Subject: Re: Returning Generic Lists Properly Typed? > > > 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/ap >ache-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.s > >er 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
