ws-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Williams <>
Subject Can't send BASIC Auth to Tomcat
Date Tue, 07 Mar 2006 02:51:00 GMT
I'm using Apache's XML-RPC version 2 with an out of the box Tomcat 5.5.7
installation.  I want to send BASIC authentication headers to the
XML-RPC server running inside a HttpServlet class on my Tomcat web
app.   I can execute non-auth based xml-rpc requests no problem, the
only issue I have is getting the Authorization header information passed
on to my Servlet.

Here's the basic snippet of code I call, but the HttpServletRequest
object on the server is the same with or without the 2nd line.

            this.trans = new CommonsXmlRpcTransport(this.url);
            this.trans.setBasicAuthentication("AKJADA", "ASFAFDS");
            Object obj = client.execute(req, this.trans);

Do I need some sort of rewrite rules in Tomcat or is there some way to
let the servlet handle the authentication?  It seems Tomcat strips that
header before passing it onto the servlet.


View raw message