1 Reply Latest reply on Mar 28, 2007 12:52 PM by jason.greene

    Basic authentication in a JBossWS web service client

    magnus.ahlander

      I'm using JBossWS 1.2 (JAX-WS 2.0) to access a web service, which requires http basic authentication. In the JBoss JAX-WS user guide I didn't find any example of how to provide username/password in a JBossWS web service client.

      In the JBossWS forum I found the following custom solution:

      http://www.jboss.com/index.html?module=bb&op=viewtopic&t=94504

      It basically adds a new annotation CallProperties, the content of which is then added to the endpoint metadata when processed by the JSR181ClientMetaDataBuilder and JSR181MetaDataBuilder classes.

      Which is the proposed way of adding http basic authentication in a JBossWS client?

      Regards,
      Magnus