On Sunday, October 23, 2011 11:27:22 PM chris snow wrote:
> Hi Forum,
> 
> I need to add ws-policy + ws-security to an existing web service that I have
> implemented in spring-ws.  With spring ws, it seems that there is a manual
> step to go from writing the policy in the wsdl to configuring the security
> handling.  This could lead to errors where the actual security handling
> would be different from that published in the wsdl.
> 
> Is my understanding correct that the above limitation would be reduced by
> using cxf?  I.e. the cxf generated service code would have security handling
> code generated from the ws-policy / ws-security details in the wsdl.

Well, the *generated  code* doesn't have anything policy related in it.   
However, the runtime will use the policy statements from the WSDL to enforce 
the policies and configure the interceptors and such.   In general,  you then 
just need to add some minor configuration key/value pairs that the runtime 
uses.  (for example: where is the keystore, what's the username/password, 
etc...)

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

Reply via email to