cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Isikoff <>
Subject Re: Returning Generic Lists Properly Typed?
Date Sat, 28 Jul 2007 23:32:32 GMT
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

----- Original Message ----
From: Brad Harper <>
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

@WebMethod(operationName = "getAllProducts")
    @ResponseWrapper(targetNamespace = "<>";,

            className = "com.gdservices.service.thirdparty.ProductSummary")
    @WebResult(targetNamespace = "
            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.


On 7/28/07, Jeremy Isikoff <> 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.

Choose the right car based on your needs.  Check out Yahoo! Autos new Car Finder tool.

View raw message