2 Replies Latest reply on Sep 25, 2011 1:53 PM by rhayes26

    WS-Secuity Client Side

    rhayes26

      Hi:

       

      Is there a good example of setting WS security headers on the client of a web service ?

      I am looking to set the set the password(text)  and username and have not found a good example so far.

       

       

      Thanks,

       

      Edited by: rhayes26 on Sep 23, 2011 2:41 PM

        • 1. Re: WS-Secuity Client Side
          ffang

          Hi,

           

          Take a look at samples/ws_security/ut example in FUSE SF(CXF) kit, which demonstrate how to set UsernameToken ws-security header from JAVA client code.

           

          Freeman

          • 2. Re: WS-Secuity Client Side
            rhayes26

            Freeman:

             

            Thanks for your response.

             

            I think I have figured out how to write an interceptor, but I can't figure out how to incorporate that sample into the servicemix/camel framework. Do I set up the interceptor the same way, using the SpringBusFactory ? Or is there a camel way to do that ?

             

            Bob