I have a client and server project. I want to implement Username Authentication with symmetric Key.
I edit my serverside webservices parameter and add keystore.
I write a callbackhandler like here:http://java.net/jira/browse/WSIT-1376
I edit my client side webservice reference and I select dynamic , and I am able to add my callback class.
But I think, my callback class dont work,
When I try to edit my webservice refence with authentication credential type "Static" and I give default password and Username. It works. This brings me to the callback handler doesnt work properly,and I have an exception , in glassfish server.
SEVERE: WSS1409: Invalid UsernameToken both nonce and created are absent
SEVERE: WSITPVD0029: Error in Securing Outbound Message.
com.sun.xml.wss.impl.WssSoapFaultException: Invalid Security Header
I attach my servlet, callbackand error trace.