Accesing ASP.NET web service from ASP.NET web application

Accesing ASP.NET web service from ASP.NET web application

Post by VmVsd » Thu, 16 Jun 2005 21:07:03


Hi,

I have a ASP.NET web service, which is deployed in a Windows 2003 server
IIS 6.0. I am able to access the web service through web browser and .NET
windows application. But while calling a web method from a ASP.NET web
application I receive the following exception. "The request failed with HTTP
status 401: Unauthorized". I have given the Credentials like "ss.Credentials
= System.Net.CredentialCache.DefaultCredentials;".

Could you please tell me how to resolve this problem?

Answers are appreciated.

Thanks in advance.
 
 
 

1. Forward Credentials from ASP.NET Web-application to ASP.NET Web-Service?

2. Use asp.net web apps login for a second asp.net web app

We have an asp.net web application that uses Forms Authentication. We need
to launch a second application from links in this app. We don't want the
user to have to also login to this second app. Is there a way to let the
second app know that we are authenticated on the first app. I thought about
just using the http_referrer and saying the second app can not launch
anywhere except from the links on the first app but its too easily spoofed.
I'd love to be able to somehow see the auth ticket from the first app or
something like that.

Thank you for any ideas!

3. ASP.NET Reports Web Site vs. ASP.NET Crystal Reports Web Site?

4. Publish ASP.NET Web Application (ASP.NET 2.0)

5. Newbie: using asp.net 2.0 profile in an ASP.NET web service

6. ASp.NET 2.0 consumes ASp.NET 1.1 web service

7. Newbie: How to convert ASP.NET 1.1 web service project to ASP.NET 2.0

8. ASP.NET 2.0 Web Application Cannot Call a Web Service on Same Mach

9. ASP.NET 2.0 Web Application Cannot Call a Web Service on Same

10. Share AppSettings configuration between a service Web and an asp.net web application

11. Call "Web Service" From "ASP.NET Mobile web application"

12. ASP.NET Web Application and Web Service templates are missing

13. Is it possible to integate the asp.net version 1.0 web form with asp.net 2.0.??

14. Embedding a PDF doc in an ASP.NET page, beside ASP.NET web control

15. asp.net web service connecting to another web service