Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to pass identity from Form to WebService ?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01024385
Message ID:
01025062
Vues:
21
Hi,

>>
Here's what I've found so far:

I created a small Web Service project using the standard "Hello World" Example method.

Under the IIS Console Mgr I left Authorization and Authentication as is.

I right-clicked specifically on the asmx file that had the "Hello World" method and set the file security to Windows Authentication ONLY.

I then created another project with a single page aspx that created System.Net.NetworkCreditial(User, Pass, Domain)

I then set the WebService.Creditials property member to the Network Creditial Object

and viola! It worked.
>>

But you're just setting the credentials for the web service to a known identity (and in that situation the IIS Security settings are irrelevant).

What I'm trying to do is use the Identity passed to the web page by IIS (System.Threading.Thread.CurrentPrincipal ? ) to set the credentials for the WS proxy.

Regards,
Viv
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform