You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Vladislav Papayan <vl...@db.com> on 2010/06/10 11:27:08 UTC

dynamicClientFactory and ws-security

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 ?


Thank you

---
This communication may contain confidential and/or privileged information.
If you are not the intended recipient (or have received this communication
in error) please notify the sender immediately and destroy this
communication. Any unauthorized copying, disclosure or distribution of the
material in this communication is strictly forbidden.
Deutsche Bank does not render legal or tax advice, and the information
contained in this communication should not be regarded as such.

Re: dynamicClientFactory and ws-security

Posted by Daniel Kulp <dk...@apache.org>.
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
dkulp@apache.org
http://dankulp.com/blog