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?

----- 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/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


       
____________________________________________________________________________________
Building a website is a piece of cake. Yahoo! Small Business gives you all the 
tools to get online.
http://smallbusiness.yahoo.com/webhosting

Reply via email to