Weblogic security is not understood by CXF; you'll need to add
CXF-compatible policies instead.

Glen

On 02/16/2013 10:13 PM, lv wrote:
> [email protected]
>
> I use cxf to create web services from java code. Then I add weblogic web 
> service security policy.
> However, after deploying to weblogic 12c, I cannot see the security part in 
> WSDL.
> Can I use weblogic web service security to cxf web services?
> Or I must write security policy by myself and add them to  cxf web services?
>
> import weblogic.jws.Policies;
> import weblogic.jws.Policy;
>  
> @Component
> @WebService(name="appServiceSecurity",
>         serviceName="appServiceSrcSecurity",
>         targetNamespace="http://com.ws.su";            
> )
> @Policies({
>             @Policy(uri="policy:Auth.xml", 
> direction=Policy.Direction.inbound),
>             @Policy(uri="policy:Sign.xml"),
>             @Policy(uri="policy:Encrypt.xml")
> })
> @SOAPBinding(style = SOAPBinding.Style.DOCUMENT,
>         use=SOAPBinding.Use.LITERAL,
>         parameterStyle=SOAPBinding.ParameterStyle.WRAPPED
> )
>  
>  
> public class AppServiceSecurity{
> ...........................
> }
>
>                                         

Reply via email to