wood burning stoves 2.0*
The moose likes Web Services and the fly likes SOAP authorization problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "SOAP authorization problem" Watch "SOAP authorization problem" New topic
Author

SOAP authorization problem

Gustavo Torreti
Ranch Hand

Joined: May 20, 2003
Posts: 84
Dear friends,

I'm having some big problems with authentication for a web service.

My original error message was a 405 Method not Allowed, and I realized it was some authorization problem.

Crosschecked all user/pass info, OK. The problem is sending this info properly, then.

I looked at this previous thread (HERE), and discovered that one could put some authorization info at the SOAPHeader (later confirmed HERE).

As I set the envelope's header, however, I got a "SOAPExceptionImpl: HeaderElements must be namespace qualified" Exception, and that made me get lost. Is there any standard namespace for authorization/authentication?

I found out that the web service is running on a IIS 5.0 / win2k machine, and the authentication process was "configured on IIS to validate the local user that was sent to me".

I am currently using the SOAPEnvelope to generate the Name I need to create the header:


Any help would be highly appreciated.
[ August 26, 2004: Message edited by: Gustavo Torreti ]

You were trained to handle mission impossible; 'difficult' should be a walk in the park for you.
Gustavo Torreti
Ranch Hand

Joined: May 20, 2003
Posts: 84
I have found this link with some most useful information.

Seems like java.xml.soap doesn't have control over the http connection, and there's an Apache version that does.

Any extra tips and tricks are also welcome
[ August 26, 2004: Message edited by: Gustavo Torreti ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: SOAP authorization problem
 
Similar Threads
SOAP Header problem SAAJ
Including information in the SOAP header in a web service invocation.
Servlet using SAAJ and HTTP Authorization Header
Servlet using SAAJ and HTTP Authorization Header
designing a service