File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes JAX-WS web service client call using Digest Authentication from JBoss Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "JAX-WS web service client call using Digest Authentication from JBoss " Watch "JAX-WS web service client call using Digest Authentication from JBoss " New topic
Author

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

Ian Johnstone
Greenhorn

Joined: Jan 16, 2010
Posts: 1
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)?

Thanks,

Ian
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: JAX-WS web service client call using Digest Authentication from JBoss
 
Similar Threads
generate web service client
security implementation in web service application
Microsoft Sharepoint web services from java client
calling web service from another web service logging
how to create java client to access web services running on https/ssl