Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Axis & .NET Services - Access Denied

Status
Not open for further replies.

fatcodeguy

Programmer
Feb 25, 2002
281
CA
Hi,

I have an app running in a Tomcat/Axis environment. I want the app to call a .NET Web Service. I've done everything i need to create the service stub and so on,

The problem is when i call the page that accesses the web service, i get an Access Denied error:

Code:
(401)Access Denied
	org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:732)
	org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
	org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
	org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
	org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
	org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
	org.apache.axis.client.Call.invokeEngine(Call.java:2765)
	org.apache.axis.client.Call.invoke(Call.java:2748)
	org.apache.axis.client.Call.invoke(Call.java:2424)
	org.apache.axis.client.Call.invoke(Call.java:2347)
	org.apache.axis.client.Call.invoke(Call.java:1804)
... ... ...

Any suggestions? Thanks!!
 
I think it speaks for itself :

w3.org said:
10.4.2 401 Unauthorized
The request requires user authentication. The response MUST include a header field (section 14.47) containing a challenge applicable to the requested resource. The client MAY repeat the request with a suitable Authorization header field (section 14.8). If the request already included Authorization credentials, then the 401 response indicates that authorization has been refused for those credentials. If the 401 response contains the same challenge as the prior response, and the user agent has already attempted authentication at least once, then the user SHOULD be presented the entity that was given in the response, since that entity might include relevant diagnostic information. HTTP access authentication is explained in "HTTP Authentication: Basic and Digest Access Authentication" [43].

--------------------------------------------------
Free Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top