XFire Digest Authentication

View: New views
2 Messages — Rating Filter:   Alert me  

XFire Digest Authentication

by pcable :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am very new to Web Services, so any help would be greatly appreciated.

I thought I could use HttpClient security with XFire Client/Soap Web Service, since it was part of the XFire libraries brought into the project in the MyEclipse IDE.  So, I actually have Digest Authentication working through HttpClient.  

However, I am not sure how to integrate that into the XFire WS Client/Service Soap calls.  So now, I am back to trying to figure out how to make Digest Authentication work period in an XFire WebService.  

I thought I had the WSS4J WS Callback Handler setup, but now I am getting this error:
SEVERE: WSS4JInHandler: Request does not contain required Security header
Exception in thread "main" org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: WSS4JInHandler: Request does not contain required Security header
org.codehaus.xfire.fault.XFireFault: WSS4JInHandler: Request does not contain required Security header
        at org.codehaus.xfire.security.wss4j.WSS4JInHandler.invoke(WSS4JInHandler.java:163)


Anyhelp would be greatly appreciated.

Re: XFire Digest Authentication

by pcable :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Well, I figured it out.

The answer was here http://xfire.codehaus.org/HTTP+Transport 
under the "Client Authentication" section.

So, I have everything working as I wanted now.

pCable



pcable wrote:
I am very new to Web Services, so any help would be greatly appreciated.

I thought I could use HttpClient security with XFire Client/Soap Web Service, since it was part of the XFire libraries brought into the project in the MyEclipse IDE.  So, I actually have Digest Authentication working through HttpClient.  

However, I am not sure how to integrate that into the XFire WS Client/Service Soap calls.  So now, I am back to trying to figure out how to make Digest Authentication work period in an XFire WebService.  

I thought I had the WSS4J WS Callback Handler setup, but now I am getting this error:
SEVERE: WSS4JInHandler: Request does not contain required Security header
Exception in thread "main" org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: WSS4JInHandler: Request does not contain required Security header
org.codehaus.xfire.fault.XFireFault: WSS4JInHandler: Request does not contain required Security header
        at org.codehaus.xfire.security.wss4j.WSS4JInHandler.invoke(WSS4JInHandler.java:163)


Anyhelp would be greatly appreciated.