6 Replies Latest reply on Mar 7, 2013 10:56 AM by rvojjala

    Dynamic address for Cxf Endpoint for external service with WSS UserToken

    rvojjala

      We have a requirement to intercept any call with URL certain pattern and rewrite the URL such that it points to an external web service.

       

      To explain the requirement with an example:

      Client application submits a SOAP request on a url

                          http://MyServer.com/ServicemixContext/services/HelloService/1.0

       

      My application in (MyServer.com) should intercept any request with URL pattern       "http://MyServer.com/ServicemixContext" and construct another endpoint that points to an external service such as "http://ExternalServer.com/services/HelloService/1.0" and route the payload to this external service.

       

      I am able to achieve this part for a service that did not require any authentication details using :

       

       

       

      Above code worked fine.

       

      Now, I need to pass WSS UsernameToken details as a SOAP header to the external service.

       

      I am new to Servicemix/Camel/CXf world.

       

      Please help me with your advice. Appreciate your response.

       

      Edited by: rvojjala on Mar 6, 2013 12:22 PM

       

      Edited by: rvojjala on Mar 6, 2013 7:38 PM

       

      Edited by: rvojjala on Mar 6, 2013 7:40 PM