3 Replies Latest reply on Jul 6, 2013 1:00 AM by ffang

    Expose a webservice

    anirban.gupta4

      Hi,

       

      I am exposing a webservice by creating cxf beans and then adding the appropriate entry in camel routes, but I found another way of exposing webservices using jaxws:endpoint. Can anyone kindly say me the difference between the two?

       

      Regards,

      Anirban.

        • 1. Re: Expose a webservice
          ffang

          Hi,

           

          cxf:cxfEndpoint way belong to camel-cxf component, though it can expose a webservice, the main purpose of it is wire  incoming webservice message(soap in most cases) into  camel router for further operation.

           

          jaxws:endpoint expose a  cxf webservice, all further operations are in cxf scope only.

           

          Freeman

          • 2. Re: Expose a webservice
            anirban.gupta4

            That means if I have a requirment of exposing a consumer webservice in camel so that clients can invoke my service, perform my routing and transformations in Camel and then call a backend webservice, it could be done if the consumer is a cxf:endpoint as jaxws endpoint will not expose the service to camel routes, right?

            • 3. Re: Expose a webservice
              ffang

              Hi,

               

              Yep, exactly.

               

              Freeman