Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use Basic Authentication in Axis?

 
Mingwei Jiang
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone tell me how to use basic authentication in Axis, any documents or useful links. Thanks a lot!
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Web Services FAQ has code examples of how to set HTTP authentication on the client, and how to access it in Axis.
 
palla jayakrishna
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic