[
https://issues.apache.org/jira/browse/CXF-697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12501084
]
Freeman Fang commented on CXF-697:
----------------------------------
Hi Tog,
Yes, you can have aegis databinding on the server side and use the dynamic
client on the client side, but when you use dynamic client, the client will use
jaxb databinding. Which means your client side and server side use different
databinding, I am not sure if this is suitable for all case regarding complex
object marshall/unmarshall. Maybe we need add api to specify databinding when
use dynamic client.
Anyway, finally I get your demo working, as you wish, have aegis databinding on
the server side and use the dynamic client on the client side.
But I have to extract interface(BookServiceIntf) for BookService, and use
Thread.currentThread().getContextClassLoader() replace
Thread.currentThread().getClass().getClassLoader() to create dynamic client.
Please see the cxftestnew.tar and play it with the latest trunk
Cheers
Freeman
> Agis ClassCastException:
> -------------------------
>
> Key: CXF-697
> URL: https://issues.apache.org/jira/browse/CXF-697
> Project: CXF
> Issue Type: Bug
> Affects Versions: 2.0-RC
> Environment: Linux Debian - Java 1.5- CXF trunk
> Reporter: Guillaume Alleon
> Assignee: Freeman Fang
> Fix For: 2.0
>
> Attachments: cxftest.tgz, cxftestwithaegis.tar
>
>
> Got a java.lang.ClassCastException: org.apache.cxf.service.model.BindingInfo
> when using a Dynamic client (Aegis Binding)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.