I tried, but got same error. There is my cxf.xml <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:simple="http://cxf.apache.org/simple" xmlns:soap="http://cxf.apache.org/bindings/soap" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://cxf.apache.org/bindings/soap http://cxf.apache.org/schemas/configuration/soap.xsd http://cxf.apache.org/simple http://cxf.apache.org/schemas/simple.xsd">
<import resource="classpath:META-INF/cxf/cxf.xml"/> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/> <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/> <simple:server id="testservice" serviceClass="com.test.TestService" address="/TestService"> <simple:serviceBean> <bean class="com.test.TestServiceImpl" scope="request" /> </simple:serviceBean> <simple:dataBinding> <bean class="org.apache.cxf.aegis.databinding.AegisDatabinding" scope="request" /> </simple:dataBinding> <simple:inInterceptors> <bean class="com.test.service.interceptors.ServerInInterceptor" scope="request" /> </simple:inInterceptors> <simple:outInterceptors> <bean class="com.test.service.interceptors.ServerOutInterceptor" /> </simple:outInterceptors> <simple:outFaultInterceptors> <bean class="com.test.service.interceptors.ServerFaultInterceptor" /> </simple:outFaultInterceptors> <simple:properties> <entry key="mtom-enabled" value="true"/> <entry key="com.test.dataobject.dao.TestClassDAO.implementation" value="com.test.dataobject.TestClass"/> </simple:properties> </simple:server> </beans> When I trying to cast proxy, which I got from client, to TestClass, I'm getting "Class cast exception". Cast to TestClassDAO works fine. I think, I can use <simple:properties> to this case. Am I right? Benson Margulies-4 wrote: > > Yes, you can set it up as a property in Spring. Create the Aegis > context as a bean, etc. > > On Mon, Dec 15, 2008 at 8:30 AM, Andrew.K <intel...@ukr.net> wrote: >> >> Thanks for link. As I understand, I must use beanImplementationMap. It's >> good, when I create service on clientside. But, I need transform >> interfaces >> to appropriate classes on server. How can I use it in this case? I can't >> find anything about this. Can I use cxf.xml file? >> >> >> >> >> Benson Margulies-4 wrote: >>> >>> http://cwiki.apache.org/CXF20DOC/introduction-to-aegis-21.html >>> >>> On Fri, Dec 12, 2008 at 9:37 AM, Andrew.K <intel...@ukr.net> wrote: >>>> >>>> Hello, >>>> >>>> I have a problem with migration from XFire to CXF, with automatical >>>> binding >>>> interfaces to classes in Aegis. In XFire I used in services.xml this >>>> properties: >>>> >>>> <properties> >>>> <property >>>> key="test.TestDAO.implementation">test.TestDAOImpl</property> >>>> </properties> >>>> >>>> But this properties don't work in CXF. I tried add to cxf.xml >>>> >>>> <simple:properties> >>>> <entry key="test.TestDAO.implementation" >>>> value="test.TestDAOImpl"/> >>>> </simple:properties> >>>> >>>> But CXF still returns proxy as TestDAO and I can't cast it to >>>> TestDAOImpl. >>>> >>>> Does everyone know how specify interface implementation classes for >>>> Aegis >>>> databinding in cxf.xml? >>>> >>>> Thanks >>>> -- >>>> View this message in context: >>>> http://www.nabble.com/Interfaces-and-Aegis-tp20976786p20976786.html >>>> Sent from the cxf-user mailing list archive at Nabble.com. >>>> >>>> >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/Interfaces-and-Aegis-tp20976786p21013980.html >> Sent from the cxf-user mailing list archive at Nabble.com. >> >> > > -- View this message in context: http://www.nabble.com/Interfaces-and-Aegis-tp20976786p21033728.html Sent from the cxf-user mailing list archive at Nabble.com.