Hi, I was wondering if anybody had successfully written a JAX-WS client to a web service using Digest Authentication, from a JBoss server (from an application running inside JBoss). I'm using JBoss 6.0.0 but I think a similar issue would come up under 5.0 or 5.1.
I have tried the following things and have the following questions:
* The basic implementation doesn't work. I believe it is because it doesn't implement Digest authentication. Can anybody confirm if this is the case?
* I tried implementing a handler, with the hope that I could get the challenge header and manually generate the response. However I can't get access to the response headlers in a handler because the error is at a transport level (the close() method doesn't have access, and the handleMessage() is not called in the return journey). Is there a way I can access to these headers?
* I tried using the Metro and CXF stacks instead of the native ones. However I kept running into missing classes from the classpath (java.lang.ClassNotFoundException: javax.xml.ws.addressing.AddressingProperties). I tried "pinching" classes from the native stack, but ran into a dead end and didn't really want to hack any further.
So I guess the essence of what I want to know is: can I implement a JAX-WS client calling a service which has digest authentication, and how do I do it? What options do I have (if any)?