JAVA - CXF WS-security "A security error was encountered when verifying the message"
<p>Sorry for this question, it can appear recurrent by I'm completely blocked.
I'm trying to implement a Web Service Server on top of <strong>CXF</strong> framework. <strong>Jax-ws</strong> is very helpful to handle a web service, it's easy to implement  it.
But, the problem come when you want to introduce <strong>security</strong>.</p>

<p>To handle security in implement the following source code :</p>

<pre><code>EndpointImpl jaxWsEndpoint = (EndpointImpl) Endpoint.publish(endPointAddress, httpWebService);
inProps.put("action", "UsernameToken Timestamp");
inProps.put("passwordType", "PasswordText");
inProps.put("passwordCallbackClass", "com.company.webService.PasswordListener");
jaxWsEndpoint.getInInterceptors().add(new WSS4JInInterceptor(inProps));
</code></pre>

<p>I push to this Web Service the following <strong>SOAP</strong> request : </p>

<pre><code>...
&lt;soapenv:Header&gt;
   &lt;wsse:Security soapenv:mustunderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"&gt;
      &lt;wsse:Usernametoken wsu:id="UsernameToken-27777511" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"&gt;
        &lt;wsse:Username&gt;admin&lt;/wsse:Username&gt;
        &lt;wsse:Password type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"&gt;pass&lt;/wsse:Password&gt;
     &lt;/wsse:Usernametoken&gt;
   &lt;/wsse:Security&gt;
&lt;/soapenv:Header&gt;
...
</code></pre>

<p>The <strong>CXF</strong> framework received my request try to handle the security part and throw me the following exception: </p>

<pre><code>Jun 08, 2016 10:48:24 AM org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor checkActions
WARNING: Security processing failed (actions mismatch)
Jun 08, 2016 10:48:24 AM org.apache.cxf.phase.PhaseInterceptorChain doDefaultLogging
WARNING: Interceptor for {http://httpAbstractHandlerImplementation.webService.company.co /}HttpWebServiceService has thrown exception, unwinding now
org.apache.cxf.binding.soap.SoapFault: A security error was encountered when verifying the message at org.apache.cxf.ws.security.wss4j.WSS4JUtils.createSoapFault(WSS4JUtils.java:218)
at org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.handleMessageInternal(WSS4JInInterceptor.java:316)
</code></pre>

<p>If somebody have an idea where i have done an error.</p>

<p>Thanks</p>