On Thursday 10 June 2010 5:27:08 am Vladislav Papayan wrote:
> Hi,
> Asked this before, but did not see any replies
> 
> 
> Can anybody share an example of using DynamicClientFactory and Ws-security
> with CXF ?
> 
> Is that even possible ?

It definitely should be possible, at least with the latest 2.2.9 code.   There 
really are two ways to go:

1) WS-SecurityPolicy stuff defined in the WSDL.   In this case, the Client 
returned from the Factory has the same request context where you can set the 
various WS-SecPol settings described in the docs.     Should really be no 
different than using a normal client.

2) Using the WSS4J* interceptors.    The client is an interceptor provider.   
You should be able to add the WSS4J interceptors to the client just like you 
normally would.


-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog

Reply via email to