camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Narrell <m...@thistech.com>
Subject Re: cxfEndpoint and cxf:dataBinding
Date Wed, 09 Nov 2011 19:24:53 GMT
Willem,

I'm asking about

cxf:dataBinding - You can specify the which DataBinding will be use in the endpoint. This
can be supplied using the Spring <bean class="MyDataBinding"/> syntax.

Not

cxf:binding - You can specify the BindingFactory for this endpoint to use. This can be supplied
using the Spring <bean class="MyBindingFactory"/> syntax. cxf:features

Thanks,
-matt

On Nov 8, 2011, at 5:14 PM, Willem Jiang wrote:

> It's a know issue[1], and it is fixed in camel 2.8.2
> 
> [1] https://issues.apache.org/jira/browse/CAMEL-4473
> 
> On Wed Nov  9 04:34:46 2011, Matt Narrell wrote:
>> Hey,
>> 
>> I'm trying to add a cxf:dataBinding element to my cxf:cxfEndpoint.  According to
the documentation[1] and the XSD[2] this seems possible, but looking at the code I don't see
a DataBinding property.  When Spring tries to create the bean, I get this:  org.springframework.beans.NotWritablePropertyException:
Invalid property 'dataBinding' of bean class [org.apache.camel.component.cxf.CxfSpringEndpoint]:
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?
>> 
>> My cxf:endPoint is defined similar to:
>> 
>> <camelCxf:cxfEndpoint id="myCxfEndpoint" address="/my/path" serviceClass="my.ServiceInterface"
wsdlURL="/wsdl/path/my.wsdl">
>>   <camelCxf:dataBinding>
>>     <ref bean="myJaxbDataBinding"/>
>>   </camelCxf:dataBinding>
>> </camelCxf:cxfEndpoint>
>> 
>> What am I missing?  Is there an alternate way to do this?
>> 
>> I'm using:
>> Apache Camel: 2.8.1
>> Apache CXF: 2.4.3
>> Spring Framework: 3.0.6.RELEASE
>> 
>> -matt
>> 
>> [1] http://camel.apache.org/cxf.html
>> [2] http://camel.apache.org/schema/cxf/camel-cxf.xsd
>> 
>> 
> 
> 
> -- 
> Willem
> ----------------------------------
> FuseSource
> Web: http://www.fusesource.com
> Blog:    http://willemjiang.blogspot.com (English)
>         http://jnn.javaeye.com (Chinese)
> Twitter: willemjiang
> Weibo: willemjiang


Mime
View raw message