0 Replies Latest reply on Nov 20, 2009 5:56 AM by Steve Edwards

    Using WS-Security UsernameToken (jbossws-metro-3.2.1)

    Steve Edwards Newbie

      JBoss + Metro client - help!

      We are writing a Web Service client to access a Web Service server (.NET) which requires WS-Security UsernameToken with Password Digest.

      The server has provided us with a WSDL which does not have any WS-Policy component.

      Our client code successfully generates a SOAP message without the WS-Security SOAP Header.

      The client code is run from within a Servlet in a web app, which is based on jboss-5.1.0.GA.
      The Web Service stack being used is jbossws-metro-3.2.1.GA.

      So far, we have not found a successful way of including WS-Security UsernameToken.

      Is there a way of programmatically ensuring this is included, without
      using xml configuration files?

      Having scoured the posts here and on other fora, it appears that for JBoss + Metro, it is
      necessary to use a file wsit-client.xml:
      - is that correct?
      - if yes where in our web app do we need to place it?
      - what would the content of this file be?

      (Could not find any of the demo files of the package 'org.jboss.test.ws.jaxws.samples.wsse' in the distribution.)

      BTW, the transmission will be over SSL, so message-level encryption is not necessary.