This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Web Services and the fly likes How to use Basic Authentication in Axis? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply 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: 35241
    
    7
The Web Services FAQ has code examples of how to set HTTP authentication on the client, and how to access it in Axis.


Android appsImageJ pluginsJava web charts
palla jayakrishna
Greenhorn

Joined: Oct 01, 2008
Posts: 5
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to use Basic Authentication in Axis?
 
Similar Threads
XML and Web Services Security
Using HttpURLConnection.getInputStream() in weblogic
wsdl2java that work with Oracle10g ??
why form based authentication does not specify realm
Unsupported response content type "text/html", must be: "text/xml".