This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JAX-WS web service client call using Digest Authentication from JBoss  RSS feed

Ian Johnstone
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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: 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)?


Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!