File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes How to use Basic Authentication in Axis? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to use Basic Authentication in Axis?" Watch "How to use Basic Authentication in Axis?" New topic

How to use Basic Authentication in Axis?

Mingwei Jiang
Ranch Hand

Joined: Feb 19, 2004
Posts: 63
Can someone tell me how to use basic authentication in Axis, any documents or useful links. Thanks a lot!
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41599
The Web Services FAQ has code examples of how to set HTTP authentication on the client, and how to access it in Axis.

Ping & DNS - my free Android networking tools app
palla jayakrishna

Joined: Oct 01, 2008
Posts: 7
Hi friends ,
I am getting this exception while trying to access web service please help:
client code:
stub._setProperty(stub.USERNAME_PROPERTY, "UMWSSIRC");
stub._setProperty(stub.PASSWORD_PROPERTY, "Hiper2012Zer0409");

after running error:

at org.apache.axis.transport.http.HTTPSender.readFromSocket(

but the same credentials working fine when i test in SOAP UI.

does any one phased this problem please help
Consider Paul's rocket mass heater.
subject: How to use Basic Authentication in Axis?