Announcement Announcement Module
No announcement yet.
Retrieve UsernameToken in Endpoint Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Retrieve UsernameToken in Endpoint

    I need to know how to retrieve UsernameToken in the Endpoint. I tried using the "MessageEndpoint" and override the "invoke(MessageContext arg0)" method . But im not able to retrieve the "UsernameToken" from the "MessageContext". The procedure i followed is,

    PHP Code:
    public void invoke(MessageContext arg0throws Exception {
    SaajSoapMessage message = (SaajSoapMessagearg0.getRequest();
    SoapHeader headermsg.getSoapHeader();

    but i see that the header element does not contain the "UsernameToken" sent in the request. I use the "SimplePasswordValidationCallbackHandler" and it does validate the request for username token. But in the Endpoint im not able to retrieve it. Is it that the request before coming to Endpoint filters out "usernameToken" or is the procedure im using wrong.