I have found the error.

The route must be defined as such :

    <camel:bean ref="message" method="createSOAPMessage"/> --> body contains
a javax.xml.soap.SOAPMessage
    <camel:convertBodyTo type="java.lang.String"/>
    <camel:to uri="
http://10.0.0.1:8080/FADI_SERVICES/services/WsAbsBeneficiaires"/>




On Thu, Sep 9, 2010 at 3:14 PM, Charles Moulliard <[email protected]>wrote:

> Hi,
>
> I have created a small project to send a SOAPMessage to a HTTP server
> (hosting web services)
>
> Here is the snapshot of my camel route
>
>                    <camel:bean ref="message" method="createSOAPMessage"/>
> --> body contains a javax.xml.soap.SOAPMessage
>                    <camel:to uri="
> http://10.0.0.1:8080/FADI_SERVICES/services/WsAbsBeneficiaires"/>
>
> From my browser I can connect to the webservice :
> http://10.0.0.1:8080/FADI_SERVICES/services/WsAbsBeneficiaires?wsdl
> but camel returns the following error :
>
> 09-sept.-2010 14:41:20 org.apache.cxf.phase.PhaseInterceptorChain
> doDefaultLogging
> ATTENTION: Application 
> {http://rest.esb.etnic.be/}FormRequest<http://rest.esb.etnic.be/%7DFormRequest>has
>  thrown exception, unwinding now
> org.apache.cxf.interceptor.Fault: Exception occurred during execution on
> the exchange: Exchange[Message:
> com.sun.xml.messaging.saaj.soap.ver1_1.message1_1i...@1cac08b]
>         at
> org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:155)
>         at
> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:121)
>         at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:133)
>         at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:82)
>         at
> org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
>         at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>         at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>         at
> org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)
>         at
> org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)
>         at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)
>         at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:110)
>         at
> org.apache.camel.component.cxf.cxfbean.CxfBeanDestination.process(CxfBeanDestination.java:85)
>
> Can someone tell me if my route is wrong ?
>
>
> Regards,
>
> Charles Moulliard
>
> Senior Enterprise Architect (J2EE, .NET, SOA)
> Apache Camel - Karaf - ServiceMix Committer
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Blog : http://cmoulliard.blogspot.com |  Twitter :
> http://twitter.com/cmoulliard
> Linkedin : http://www.linkedin.com/in/charlesmoulliard | Skype: cmoulliard
>

Reply via email to