cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kamlesh Bhatt (JIRA)" <j...@apache.org>
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

    [ https://issues.apache.org/jira/browse/CXF-2415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12981791#action_12981791
] 

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("http://64.68.163.33:8080/socialkast-web/skservice/skservice?wsdl");
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: https://issues.apache.org/jira/browse/CXF-2415
>             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: Test.java
>
>
> 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: http://www.wikipathways.org/wpi/webservice/webservice.php?wsdl.
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.


Mime
View raw message