• Post Reply Bookmark Topic Watch Topic
  • New Topic

Axis Weblogic and Authentication  RSS feed

Chris Cody
Posts: 2
C++ Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
[ March 21, 2008: Message edited by: Chris Cody ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!