5 Replies Latest reply on Jul 19, 2010 8:55 PM by Willem Jiang

    Trouble with cxfbc to Camel route

    kevin limperos Newbie

      Hello,

       

      I am having some difficulty with cxfbc to Camel interaction. The goal is to accept a SOAP message in cxfbc and route it to Camel for output to a file.

       

      I am running ServiceMix 3.3.2 and have a cxfbc consumer defined as follows:

       

       

       

      However, when I attempt to send a SOAP message to cxfbc it appears not to be able to find wtservice and wtendpoint:

       

      WARN  - CxfBcComponent                 - Target service (wtservice) and endpoint (wtendpoint) specified, but no matching endpoint found.  Only the service will be used for routing.

       

      and

       

      org.apache.cxf.interceptor.Fault: Could not find route for exchange: InOut[

              id: ID:174.141.128.19-129eca1e194-3:0

              status: Active

              role: provider

              service: wtservice

              operation: getPerson

              in: <?xml version="1.0" encoding="UTF-8"?><jbi:message xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper" xmlns:msg="http://poc.test.com/POC/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="getPerson" type="msg:getPerson" version="1.0"><jbi:part><poc:getPerson xmlns:poc="http://poc.test.com/POC/">

                         

                  </poc:getPerson></jbi:part></jbi:message>

      ]

       

      If I try changing the endpoint?s mep explicitly to in-out as follows:

       

       

       

      the error persists from cxfbc, but then the camel file input route breaks, because it wants an in-only endpoint.

       

      Any ideas for how to correct the cxfbc to Camel communication?

       

      Thank you.

       

      Kevin