You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by chris snow <ch...@gmail.com> on 2011/10/24 00:27:22 UTC
ws-policy + ws-security
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.
Many thanks,
Chris
Re: ws-policy + ws-security
Posted by Daniel Kulp <dk...@apache.org>.
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
dkulp@apache.org
http://dankulp.com/blog
Talend - http://www.talend.com
Re: ws-policy + ws-security
Posted by Glen Mazza <gm...@talend.com>.
You have a choice of manual configuration using interceptors or relying
on WS-Policy statements to do the work for you. Links #2 and #4 under
"Security" here[1] will show you examples of both.
HTH,
Glen
[1] http://www.jroller.com/gmazza/entry/blog_article_index
On 10/23/2011 06:27 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.
>
> Many thanks,
>
> Chris
>
--
Glen Mazza
Talend - http://www.talend.com/apache
Blog - http://www.jroller.com/gmazza
Twitter - glenmazza