cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kamlesh Bhatt (JIRA)" <>
Subject [jira] Commented: (CXF-2415) Dynamic client returns a T when it should return a List<T>
Date Fri, 14 Jan 2011 15:29:46 GMT


Kamlesh Bhatt commented on CXF-2415:

Does it only work with build in java classes or it also works with custom classes

I have a custom class FeedMetaData which is a kind of bean. I am returning list of objects
of this class from a web service method. When I try to invoke this method from client, I get
ClassCastException. Below is my client code:

JaxWsDynamicClientFactory dcf = JaxWsDynamicClientFactory.newInstance(bus);
Client client = dcf.createClient("");
Object[] results = client.invoke("getCommecialFeeds");
List<FeedMetaData> result = (List<FeedMetaData>)results[0];

Please let me know whether this fix takes care of return type list of custom objects. 

> Dynamic client returns a T when it should return a List<T>
> ----------------------------------------------------------
>                 Key: CXF-2415
>                 URL:
>             Project: CXF
>          Issue Type: Bug
>          Components: Service Model, Simple Frontend
>    Affects Versions: 2.1.4
>            Reporter: Benjamin Coiffe
>            Assignee: Daniel Kulp
>             Fix For: 2.1.7, 2.2.4
>         Attachments:
> This only affects unwrappable operation (op.isUnwrappedCapable() && !op.isUnwrapped()
is true) that returns a sequence of objects.
> I only tested on version 2.1.4 but it may affect other versions as well given that the
codebase has not changed.
> This issue can be reproduced with the public ws:
The operation listOrganisms returns a String instead of a List<String>.
> Fyi, the default implementation of the jaxrpc spec returns String[].

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message