your usage of requestBodyAndHeader doesn't look right.
inputProducerTemplate.requestBodyAndHeader("cxf:bean:CustomersServiceConsumerEndpoint",
 body, mapHeaders);

the first argument is supposed to be the body value, see
    /**
     * Sends the body to the default endpoint and returns the result content
     * Uses an {@link ExchangePattern#InOut} message exchange pattern.
     * <br/><br/>
     * <p/><b>Notice:</b> that if the processing of the exchange failed
with an Exception
     * it is thrown from this method as a {@link
org.apache.camel.CamelExecutionException} with
     * the caused exception wrapped.
     *
     * @param body        the payload
     * @param header      the header name
     * @param headerValue the header value
     * @return the result (see class javadoc)
     * @throws CamelExecutionException if the processing of the exchange
failed
     */
    Object requestBodyAndHeader(Object body, String header, Object
headerValue) throws CamelExecutionException;

regarding the missing exception you mentioned (and if the exception is
swallowed), this needs to be looked into to see if we can log the exception.



2013/5/27 Chubutin <ramp...@gmail.com>

> I created a new Project with this example, be free to take a look. Thank
> you!
>
> exampleCamelCXF.tar
> <http://camel.465427.n5.nabble.com/file/n5733278/exampleCamelCXF.tar>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Test-route-with-CXF-endpoint-tp5733266p5733278.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Reply via email to