File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 41102
    
  45
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
 
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
Unsupported response content type "text/html", must be: "text/xml".
why form based authentication does not specify realm
Using HttpURLConnection.getInputStream() in weblogic
wsdl2java that work with Oracle10g ??