You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by DF...@teamhuber.com on 2006/03/22 16:45:51 UTC

HTTP Authentication?

What's the simplest programmatic way to do HTTP Authentication with Axis 
1.x?

Basically, I need to convert this Apache SOAP code:

Call call = new Call();
SOAPHTTPConnection hc = new SOAPHTTPConnection();
hc.setUserName(userName);
hc.setPassword(password);
call.setSOAPTransport(hc);

BTW, I know that most people will say that I *should* be using 
WS-Security, and in most of my apps I am.  But I have one where I need 
this.

- David