axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anil Philip" <aphi...@itdm.com>
Subject 401 error - where to enter userid, password when calling a client stub from Java?
Date Fri, 08 Jun 2007 22:07:05 GMT
 

I am trying to call a service, and get the following 401 error. The
stubs are generated using Axis 1.4 WSDL2Java.

How do I pass in userid-password?

 

-

thanks,

Anil

 

 

faultDetail: 

        {}:return code:  401

&lt;html&gt;&lt;head&gt;&lt;title&gt;Apache Tomcat/5.5.20 - Error
report&lt;/title&gt;&lt;style&gt;&lt;!--H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;font-size:22px;} H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;font-size:16px;} H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;font-size:14px;} BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;
} B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;} P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-s
ize:12px;}A {color : black;}A.name {color : black;}HR {color :
#525D76;}--&gt;&lt;/style&gt; &lt;/head&gt;&lt;body&gt;&lt;h1&gt;HTTP
Status 401 - &lt;/h1&gt;&lt;HR size=&quot;1&quot;
noshade=&quot;noshade&quot;&gt;&lt;p&gt;&lt;b&gt;type&lt;/b&gt;
Status
report&lt;/p&gt;&lt;p&gt;&lt;b&gt;message&lt;/b&gt;
&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;description&lt;/b&gt;
&lt;u&gt;This request requires HTTP authentication
().&lt;/u&gt;&lt;/p&gt;&lt;HR size=&quot;1&quot;
noshade=&quot;noshade&quot;&gt;&lt;h3&gt;Apache
Tomcat/5.5.20&lt;/h3&gt;&lt;/body&gt;&lt;/html&gt;

        {http://xml.apache.org/axis/}HttpErrorCode:401

 

(401)Unauthorized

        at org.apache.axis

 


Mime
View raw message