• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Devaka Cooray
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
Bartenders:

Axis Weblogic and Authentication

 
Greenhorn
Posts: 2
Eclipse IDE C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
Cody
[ March 21, 2008: Message edited by: Chris Cody ]
 
Beware the other head of science - it bites! Nibble on this message:
Paul Wheaton's 16th Kickstarter: Gardening playing cards for gardeners and homesteaders
https://coderanch.com/t/889615/Paul-Wheaton-Kickstarter-Gardening-playing
reply
    Bookmark Topic Watch Topic
  • New Topic