File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes Axis Weblogic and Authentication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Axis Weblogic and Authentication" Watch "Axis Weblogic and Authentication" New topic
Author

Axis Weblogic and Authentication

Chris Cody
Greenhorn

Joined: Mar 20, 2008
Posts: 2

Hello all.
I have a problem that I have been wrestling with and I am unable to find a solution. I hope I can get some guru help.
We have a Struts based Web Service. This service is hosted on a Weblogic 9.x server. It is accessed through a browser and authenticates using the j_security_check form.
I have been tasked with connecting our Web Service with a 3rd party Web Service. My starting point is within a org.apache.struts.action.Action.execute() method.

Their interface has been provided as a set of classes that extend org.apache.axis.client.Stub objects. I want to connect to these using the standard methods.
However, they are protected and when I try to access the methods I get a:
(401)Unauthorized error and long, html formatted message saying that I am not authorized:
"The request requires user authentication. The response MUST include a WWW-Authenticate header field (section 14.46) containing a challenge applicable to the requested resource."

Because of the j_security_check authentication, I do not have a password to use. My hands have been further tied by a user restriction that prevents me from asking for one (Neither through browser input or CallBack methods.)

What I need is a way to either retrieve my Weblogic credentials (however that is handled by Weblogic) and pass them to the Axis Stub object, or a way to have Weblogic handle the authentication to the Stub object for me.
If it helps, as an alternative, I could try to invoke the Stub methods from an EnterpriseBean in my EJB layer.

Thank you in advance.
Cody
[ March 21, 2008: Message edited by: Chris Cody ]
 
 
subject: Axis Weblogic and Authentication