3 Replies Latest reply on Aug 15, 2007 10:52 AM by mageshbk

    JAXWS and Username Token

    thomas.diesler

      Magesh sais:

      I am aware that the UserPrinciapl and Credentials are checked with this
      test case and the details are passed via the HTTPRequest, but the real
      question is about wsse:UsernameToken and its presence in SOAPHeader and
      not in HTTPRequest.

      When we set the BindingProvider properties we are able to login and this
      testcase passes, but when we set the jboss-wsse-*.xml
      configuration this does not appear in the SOAPHeader, whereas it works
      for JAXRPC style webservices and it works for JAXWS clients too if we
      set the properties like this:

      (BindingProvider)port).getRequestContext().put("javax.xml.rpc.security.auth.username", "kermit");
      ((BindingProvider)port).getRequestContext().put("javax.xml.rpc.security.auth.password", "thefrog");