473,382 Members | 1,407 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Architecture Question: WCF service using Profile provider

Hi all,

I want to know if it is possible to have a WCF service hosted in IIS
(.svc) that uses the provider model in .Net?
Ideally, I'd like the WCF service methods to detect the user's AD user
name automatically (ie not passed as a parameter in the method) such
that it uses trusted authentication. The service then access profile
information via the profile provider.

In ASP.NET pages this is easy. You can simply do:
httpContext.Current.Profile
However httpContext is null in a WCF application so I can not access
it the same way.

Keep in mind this is a bit different to the SOA approach which is to
have profile provider talk to WCF instead WCF talking to the profile
provider. The actual underlying method that gets/sets profile
information should be irrelevant because that's the whole point of the
provider model.

I have no actual bug that needs fixing here. I just want to know if it
is possible to do the above, and how would I approach it.

I really appreciate any help you guys can give!

Cheers,
Steven Nagy

Aug 12 '07 #1
1 2173
Hi Nicholas,

This hit the nail on the head.
I have another Profile Provider question but I'll post to a new
thread.

Thanks heaps for your help. The article was the perfect solution.

Cheers,
Steven

Aug 14 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Michael Crawford | last post by:
Hi, Where would one start for this type of application: I want to create an vb.net container application that has the gives the end user the ability to install and uninstall plugins or add-in...
4
by: Viviana Vc | last post by:
Hi all, A Windows service (which obviously starts before any user logs in) is failing to: - read something from registry from a key under the HKCU - try to find out the user path by doing the...
4
by: Sven-Torben Janus | last post by:
I'm running an ASP.NET webapplication on a Windows 2000 Server SP4 machine with .Net Framework 1.0 installed. The ASP.Net application uses impersonation (windows domain account). This is needed...
0
by: deshbandhu | last post by:
Note: (I have attached the code below) When I run this code from Microsoft. A sample provided on ...
2
by: John A | last post by:
I have a Web Service that I am reponsible for that we use for data integration purposes. Recently I have been tasked with sending some of this data to a third party. Because they need to receive...
2
by: Dean R. Henderson | last post by:
For an ASP.NET web application, is there a way for one session (with appropriate security authorization) to set a HttpSessionState variable to point to another session and execute the Abandon...
1
by: Remy De Almeida | last post by:
Hi , Sorry i am posting this again as no one seems have taken notice of this in the distributed appln forum I have a remote server which works fine. The Client ans server work with no problem....
7
by: MarkusJNZ | last post by:
Hi, we have some datafeeds which pull info from external sources. Unfortunately, we have to use screen scraping as there are no XML feeds. The data feeds are located in a variety of different...
3
by: Cirene | last post by:
I have been looking into Personalization, Membership and Role Management. If I understand it correctly, I should use Personalization to store extra info about the user, such as: First Name, Last...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.