TypeConversion Exception : Apache Camel and CXF

后端 未结 1 1676
萌比男神i
萌比男神i 2021-01-17 03:04

I am trying to integrate CXF restful web services with Apache Camel. I am getting the following exception when I send a request to my web service:

Caused by:         


        
相关标签:
1条回答
  • 2021-01-17 04:05

    solved all the errors.. actually the problem was not when my cxf server was getting hit, it comes out to be when the exchange was in the "to" part... i had to add a processor in between from and to and override all the CamelHttpUri , CamelHttpMethod etc .... to make it work.

    <camelcxf:rsServer id="rsServer" address="http://localhost:port/MyApplication/rest/foobar serviceClass="com.camel.example.FooBar" />  <camel:camelContext id="camelContext-1">  <camel:route>  
    <camel:from uri="cxfrs:bean:rsServer" />  
    <camel:process ref="customInProcessor" />
    <camel:to uri="http://www.google.com" /> 
     </camel:route>
      </camel:camelContext> 
    
    <bean id="customInProcessor" class="com.camel.MyInProcessor" />
    
    0 讨论(0)
提交回复
热议问题