Trying to validate the TS method:

List<WSSecurityEngineResult> resultList = wsSecurityEngine.processSecurityHeader(doc, "Actor", callbackHandler, crypto); 

But wss4j does not see the security header.

request:

 <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Header> <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" soapenv:mustUnderstand="1"> <wsu:Timestamp wsu:Id="TS-CC2DD79172C7EFA866147066307733352"> <wsu:Created>2016-08-08T13:31:17.333Z</wsu:Created> <wsu:Expires>2016-08-09T13:31:17.333Z</wsu:Expires> </wsu:Timestamp> </wsse:Security> </soapenv:Header> <soapenv:Body> </soapenv:Body> 

Error does not issue. Just ignore the header. In the debugger it finds ChildNodes (soapenv: Header, wsse: Security, etc.).

    0