all groups > sql server reporting services > june 2005 >
You're in the

sql server reporting services

group:

WebService and Form Authentication


WebService and Form Authentication John Amason
6/2/2005 11:05:38 AM
sql server reporting services:
implemented the Form Authenication example which works fine.

However, when I try calling the Reporting Web Service from another Web
Service I get error message indicating try to redirect to Login.

rs.Login("admin", "admin",null); return ok

rs.Credentials = New System.Net.NetworkCredential("username", "password")

but when trying the following I get error:

CatalogItem[] catalogItems;
catalogItems = rs.ListChildren("/samples", true);

I am not using SSL.

Do I need to set a cookie or something else?


Re: WebService and Form Authentication Jens Süßmeyer
6/2/2005 9:50:38 PM
YOu have to use another method for Forms authentication like explained in
detail here:

http://www.devx.com/dotnet/Article/26759/0/page/3

--
HTH, Jens Suessmeyer.

---
http://www.sqlserver2005.de
---
"John Amason" <jamason@ics-associates.com> schrieb im Newsbeitrag
news:uecnuz4ZFHA.3356@TK2MSFTNGP15.phx.gbl...
[quoted text, click to view]

Re: WebService and Form Authentication Ben Eaton
6/2/2005 11:56:58 PM
You are calling the reporting services web service from another web
service - in order for this web service to successfully authenticate to
reporting services, it needs to be running in the identity of an account
which has permissions on reporting services AND you need to enter the
following in the constructor of the reporting services web service proxy:

VB:

Me.Credentials = System.Net.CredentialCache.DefaultCredentials

C#:

this.Credentials = System.Net.CredentialCache.DefaultCredentials

For more information on how to run an ASP.NET web application or web service
in a custom account, see the following article:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/secmod/html/secmod15.asp

If you're running IIS 6 (i.e. Windows Server 2003) then you can simply set
up an application pool with the custom account as the identity and the web
service will use the credentials of that account to access system resources.

[quoted text, click to view]

AddThis Social Bookmark Button