Dear Mr. Huber,
I am having exactly the same problem in my project.
After researching a lot in the net since last Friday, I couldn't find any
answer. An excerption of my code is below:
@WebService(serviceName="UsuarioSoapService")
public class UsuarioSoapServ extends WebServiceBase<UsuarioServEJB>
implements UsuarioServ {
@WebMethod
@Override
@Policy(uri="classpath:/policies/BearerPolicy.xml")
public Usuario lerUsuario(@WebParam(name="bilhete") Bilhete bilhete,
@WebParam(name="dnOuId") String dnOuId) {
LogInicioMetodo();
return LogFinalMetodo(getService().lerUsuario(bilhete, dnOuId));
}
}
But the @Policy annotation is ignored, and no policy is included in WSDL.
The log shows no error, even if I force a non existent policy file.
This was supposed to be an easy code, but I am struggling to make it work.
If you found any answer for this problem, please share.
Regards,
--
View this message in context:
http://cxf.547215.n5.nabble.com/Custom-WS-Security-Policy-for-Webservice-tp5756262p5756752.html
Sent from the cxf-user mailing list archive at Nabble.com.