wood burning stoves*
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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
Author

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
Marshal

Joined: Mar 22, 2005
Posts: 42374
    
  64
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
Greenhorn

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:
{http://xml.apache.org/axis/}HttpErrorCode:401

(401)Unauthorized
at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:744)

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

does any one phased this problem please help
 
 
subject: How to use Basic Authentication in Axis?