2 Replies Latest reply on Jan 16, 2012 3:25 AM by mpalvankar

    Invoking external REST service

    mpalvankar

      I need to write a consumer for external REST service using CXF http centric client API. Listing down the below configuration for the same.

       

       

       

       

      Do I have define serviceClass for cxf:rsClient?

       

      Please let me know if I am missing anything.

       

      Edited by: mrudul on Jan 15, 2012 5:45 PM

        • 1. Re: Invoking external REST service
          njiang

          Hi,

           

          I think you are massing the camel-cxf and camel-cxfrs together, and I don't the route will work as you want.

           

          Can you just use the camel-cxfrs endpoint only in your router?

           

          Willem

          • 2. Re: Invoking external REST service
            mpalvankar

            Willem

             

            Let me explain the flow:

             

            I have a JAX-WS web service on servicemix. And this service in turn invokes external JAX-RS service. Hence in my configuration I have,

             

            1. CXF Endpoint for JAX-WS

             

             

            ResponseProcessor is a Processor which processes the response from external REST service.

             

            Can we not combine camel-cxf and camel-cxfrs?

             

            Thanks for replying.

             

            Mrudul