Kai Rommel created CXF-6968:
-------------------------------
Summary: WS-Security policies placed on bus level are not
registered
Key: CXF-6968
URL: https://issues.apache.org/jira/browse/CXF-6968
Project: CXF
Issue Type: Bug
Components: WS-* Components
Reporter: Kai Rommel
Hi, I configured a WS-Consumer with WSS Interceptors successfully. Now I wanted
to switch to WSS configuration via policies. I did this successfully for WSRM.
My bus.xml is attached to the ticket.
I am using CXF 3.2.0-SNAPSHOT.
Within the .java class I am loading the config:
SpringBusFactory bf = new SpringBusFactory();
URL busFile =
ClientWSSviaPolicies.class.getResource("clientWSSviaPoliciesWithAtt_WSRM_4jira_ticket.xml");
Bus bus = bf.createBus(busFile.toString());
BusFactory.setDefaultBus(bus);
plus I am setting the needed properties
((BindingProvider)port).getRequestContext().put("ws-security.username", "wss");
((BindingProvider)port).getRequestContext().put("ws-security.callback-handler",
"demo.ws_rm.client.CallBack");
((BindingProvider)port).getRequestContext().put("ws-security.signature.username",
"wss");
((BindingProvider)port).getRequestContext().put("ws-security.signature.properties",
"jks/client.properties");
((BindingProvider)port).getRequestContext().put("ws-security.encryption.username",
"wss");
((BindingProvider)port).getRequestContext().put("ws-security.encryption.properties",
"jks/client.properties");
But the message which my client creates, is not signed nor encrypted.
WSRM policies are active, WSS policies not. Any ideas?
Best regards
Kai
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)