WSEncryptionPart encP =
new WSEncryptionPart("Timestamp", WSConstants.WSU_NS, "");
actionToken2.setParts(Collections.singletonList(encP));
final Document doc = SOAPUtil.toSOAPPart(SOAPUtil.SAMPLE_SOAP_MSG);
CustomHandler handler = new CustomHandler();
List<HandlerAction> actions = new ArrayList<HandlerAction>();
actions.add(new HandlerAction(WSConstants.ENCR, actionToken));
actions.add(new HandlerAction(WSConstants.TS, null));
actions.add(new HandlerAction(WSConstants.ENCR, actionToken2));
handler.send(
doc,
reqData,
actions,
true
);