File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes unable to run the Axis client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "unable to run the Axis client" Watch "unable to run the Axis client" New topic

unable to run the Axis client

puneet vyas

Joined: Feb 10, 2011
Posts: 2

hello moderator,

i got the following error when run axis client,any pointer are welcome the code for client is given below,i tried to set credential for the operation i am invoking,but it again failed ,i tried to diagnose it with soap UI,the same soap response i got which is mentioned below.

faultCode: {}HTTP
faultString: (401)Unauthorized
{}:return code: 401
<HTML><HEAD><TITLE>You are not authorized to view this page</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">
<STYLE type="text/css">
BODY { font: 8pt/12pt verdana }
H1 { font: 13pt/15pt verdana }
H2 { font: 8pt/12pt verdana }
A:link { color: red }
A:visited { color: maroon }
</HEAD><BODY><TABLE width=500 border=0 cellspacing=10><TR><TD>

<h1>You are not authorized to view this page</h1>
You do not have permission to view this directory or page using the credentials that you supplied because your Web browser is sending a WWW-Authenticate header field that the Web server is not configured to accept.
<p>Please try the following:</p>
<li>Contact the Web site administrator if you believe you should be able to view this directory or page.</li>
<li>Click the <a href="javascript:location.reload()">Refresh</a> button to try again with different credentials.</li>
<h2>HTTP Error 401.2 - Unauthorized: Access is denied due to server configuration.<br>Internet Information Services (IIS)</h2>
<p>Technical Information (for support personnel)</p>
<li>Go to <a href="">Microsoft Product Support Services</a> and perform a title search for the words <b>HTTP</b> and <b>401</b>.</li>
<li>Open <b>IIS Help</b>, which is accessible in IIS Manager (inetmgr),
and search for topics titled <b>About Security</b>, <b>Authentication</b>, and <b>About Custom Error Messages</b>.</li>



at org.apache.axis.transport.http.HTTPSender.readFromSocket(
at org.apache.axis.transport.http.HTTPSender.invoke(
at org.apache.axis.strategies.InvocationStrategy.visit(
at org.apache.axis.SimpleChain.doVisiting(
at org.apache.axis.SimpleChain.invoke(
at org.apache.axis.client.AxisClient.invoke(
at org.apache.axis.client.Call.invokeEngine(
at org.apache.axis.client.Call.invoke(
at org.apache.axis.client.Call.invoke(
at org.apache.axis.client.Call.invoke(
at org.apache.axis.client.Call.invoke(
at org.tempuri.CustomServiceSoapStub.getAllDocumentsFromLibrary(
at org.tempuri.MainTest.main(

code of client

here are the settings of credentials for operations i am invoking:

any pointer on this will be very helpfull

puneet vyas
Ravi Bandaru

Joined: Feb 15, 2011
Posts: 2
WHat type of authentication are you using? It looks like you are using NTLM. Please follow the link if you are trying to authenticate using windows integrated authentication.

Good luck..
I agree. Here's the link:
subject: unable to run the Axis client
It's not a secret anymore!