Thx :-) i.e. Is the "Add support for <databinding> in endpoint & client configuration" (https://issues.apache.org/jira/browse/CXF-768) not fixed in version 2.0.1 ?
Zarar Siddiqi wrote: > > If you want to use Aegis binding, you need the following: > > <jaxws:endpoint > id="simpleWsEndpoint" > implementor="#SimpleImpl" > address="/Simple"> > <jaxws:serviceFactory> > <bean > class="org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean"> > <property name="dataBinding" ref="aegisBean"/> > <property name="serviceConfigurations"> > <list> > <bean > class="org.apache.cxf.jaxws.support.JaxWsServiceConfiguration"/> > <bean > class="org.apache.cxf.aegis.databinding.AegisServiceConfiguration"/> > <bean > class="org.apache.cxf.service.factory.DefaultServiceConfiguration"/> > </list> > </property> > </bean> > </jaxws:serviceFactory> > </jaxws:endpoint> > > <bean id="aegisBean" > class="org.apache.cxf.aegis.databinding.AegisDatabinding"/> > > > Make sure your targetNamespace in the endpoint interface and the > implementation are the same. > > Zarar > > > suiaing wrote: >> >> i have the following section in my spring config file: >> <jaxws:endpoint >> id="simpleWsEndpoint" >> implementor="#SimpleImpl" >> address="/Simple"> >> <jaxws:dataBinding> >> <bean class="org.apache.cxf.aegis.databinding.AegisDatabinding"/> >> </jaxws:dataBinding> >> </jaxws:endpoint> >> >> According to the "Add support for <databinding> in endpoint & client >> configuration" (https://issues.apache.org/jira/browse/CXF-768), it should >> be work to define the dataBinding for that endpoint in cxf 2.0.1. >> However, i got the following error after deployed to the app. server: >> >> <Aug 17, 2007 11:08:44 AM GMT+08:00> <Warning> <HTTP> <BEA-101162> <User >> defined listener org.springframework.web.context.ContextLoaderListener >> failed: org.springframework.beans.factory.BeanCreationException: Error >> creating bean with name 'simpleWsEndpoint': Error setting property >> values; nested exception is >> org.springframework.beans.NotWritablePropertyException: Invalid property >> 'dataBinding' of bean class [org.apache.cxf.jaxws.EndpointImpl]: Bean >> property 'dataBinding' is not writable or has an invalid setter method. >> Does the parameter type of the setter match the return type of the >> getter?. >> >> >> i am using maven2 to build my application with the following in my >> pom.xml. >> <dependency> >> <groupId>org.apache.cxf</groupId> >> <artifactId>cxf-rt-frontend-jaxws</artifactId> >> <version>2.0.1-incubator</version> >> </dependency> >> <dependency> >> <groupId>org.apache.cxf</groupId> >> <artifactId>cxf-rt-transports-http</artifactId> >> <version>2.0.1-incubator</version> >> </dependency> >> <dependency> >> <groupId>org.apache.cxf</groupId> >> <artifactId>cxf-rt-databinding-aegis</artifactId> >> <version>2.0.1-incubator</version> >> </dependency> >> > > -- View this message in context: http://www.nabble.com/problem-when-using-%3Cjaxws%3Adatabinding-%3E-in-%3Cjaxws%3Aendpoint-%3E-in-cxf-2.0.1-tf4283503.html#a12246793 Sent from the cxf-user mailing list archive at Nabble.com.
