2 Replies Latest reply on Apr 5, 2012 7:25 AM by Claus Ibsen

    camel route with cxf provider goes into endless loop

    nvaneijck Newbie

      Hi,

       

      I want to expose a webservice, transform the request to another request, call a second webservice, transform the response and return this new response.

       

      Therefor I'm trying out this JBI-Camel Route scenario:

      CXFBC-Consumer -> JBI-Saxon (Xslt) -> Log -> CXFBC-Provider -> JBI-Saxon (Xslt)

       

      I notice that I get into some sort of endless loop as soon as I execute the Provider step (The Log step keeps showing up, I also have the idea that the loop starts with the beginning of the camel route?)

       

      I have attached the SA. I am mocking the provider Webservice using soapUI, the WSDL I use is also attached.

       

      Please help me out with this, I'm completely stuck!

       

       

       

      Here are the configurations (maybe I'm missing something here):

       

      camel-context.xml

       

      <camelContext xmlns="http://camel.apache.org/schema/spring" id="camel">

      <route>

      <from uri="jbi:endpoint:http://nfi.minvenj.nl/ws-poc/1/camel/route"/>

      <to uri="jbi:endpoint:http://nfi.minvenj.nl/ws-poc/1/xslt/create-request"/>

      <to uri="log:wspoc?showAll=true"/>

      <to uri="jbi:endpoint:http://servicemix.apache.org/samples/wsdl-first/PersonService/PersonSOAPBinding?mep=in-out&operation=GetPerson"/>

      <to uri="jbi:endpoint:http://nfi.minvenj.nl/ws-poc/1/xslt/create-response"/>

      </route>

      </camelContext>

       

      CXFBC xbean.xml

       

      <cxfbc:consumer wsdl="classpath:service.wsdl"

      targetService="wspoc:camel"

      targetEndpoint="route"

      schemaValidationEnabled="true"

      useJBIWrapper="false"

      />

      <cxfbc:provider

      service="person:PersonService"

      endpoint="person:PersonSOAPBinding"

      wsdl="http://localhost:8080/personservice/?wsdl"

      useJBIWrapper="false"

      />

       

       

       

      Saxon xbean.xml

       

      <saxon:xslt service="wspoc:xslt" endpoint="create-request"

      resource="classpath:create_request.xsl" />

      <saxon:xslt service="wspoc:xslt" endpoint="create-response"

      resource="classpath:create_response.xsl" />