2 Replies Latest reply on May 27, 2010 3:20 AM by Jackie Zhang

    how to use camel to create a proxy of cxf! HELP!!!!!!!!!!!!!!!

    Jackie Zhang Newbie

      Hi everyone

       

        I want to use camel to proxy a externel cxf service. The spring config is below:

       

      *     *

       

      But When I call the consumer , an exception is thrown.

       

      Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: BindingOperationInfo must be specified

           at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:143)

           at $Proxy45.exchange(Unknown Source)

           at com.ufida.esb.TestWSClient.main(TestWSClient.java:12)

      Caused by: org.apache.cxf.binding.soap.SoapFault: BindingOperationInfo must be specified

           at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.unmarshalFault(Soap11FaultInInterceptor.java:75)

           at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:46)

           at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:35)

           at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)

           at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:96)

           at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:69)

           at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:34)

           at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)

           at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:658)

           at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2139)

           at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2022)

           at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1947)

           at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)

           at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:632)

           at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)

           at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)

           at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:472)

           at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:302)

           at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:254)

           at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)

           at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:123)

           ... 2 more

       

       

      How to do use camel to proxy a external cxf