Page view counter
Membership Provider access through WCF web service in Silverlight 2 Subscribe to this thread
Last post 10-20-2008 5:12 AM by kfekete. 5 replies.
Sort Posts:
09-29-2008 10:40 AM
Membership Provider access through WCF web service in Silverlight 2

Hello Everyone,

I have created an Authentication and Profile WCF Service. These services are hosted in IIS. Everything works great but I am still lacking a lot of functionality. I want more than just authenticate. If I use the Membership provider in an asp.net website I get all the methods that I am looking for, create user, delete user, reset password and so forth. Is there way to expose these methods as a WCF service?

 Thanks

Christopher Kiszka

“Somewhere someone is practicing,
if you're not and you should meet, you will lose…”

ckiszka@msn.com

Loading...
Joined on 01-10-2007
Florida
Posts 31
09-29-2008 1:17 PM
Re: Membership Provider access through WCF web service in Silverlight 2

Thanks Ken but I already have these services. I wanted a way to expose some of the mebership provider/membership user functions like "CreateUser", "ResetPassword" and so forth. These are not avalible in the Authenticate, Profile and Role services.

Right now I am thinking I will have to create a service that implements these methods, duplicate code. I mean if the methods already exist in the membership provider, I did not want to recreate the methods in the Silverlight enabled WCF service. Is thier a better way? 

Christopher Kiszka

“Somewhere someone is practicing,
if you're not and you should meet, you will lose…”

ckiszka@msn.com

Loading...
Joined on 01-10-2007
Florida
Posts 31
09-29-2008 4:21 PM
Marked as Answer
Re: Membership Provider access through WCF web service in Silverlight 2

The authentication service does not expose all of its methods. In our project we created our own service that calls the extended authentication service. It is duplicating code but at least we can expand it and make it do extra work.

Thanks,
scindy

http://www.ctsoftwares.com
http://blog.ctsoftwares.com

scindy

Loading...
Joined on 03-20-2006
Dallas, TX
Posts 13
09-29-2008 4:33 PM
Re: Membership Provider access through WCF web service in Silverlight 2

Thanks for your reply. That is exactly what I am doing now. I was just hoping for a faster solution without duplicate code. Now that I know someone else is doing it I feel better. Wink

Thanks 

 

Christopher Kiszka

“Somewhere someone is practicing,
if you're not and you should meet, you will lose…”

ckiszka@msn.com

Loading...
Joined on 01-10-2007
Florida
Posts 31
10-20-2008 5:12 AM
Re: Membership Provider access through WCF web service in Silverlight 2

Hi All, 

I've implemented my own membership provider using System.Web.Security.MembershipProvider. I want to access the CreateUser method via my WCF Service, but I get every time exceptions. On client (Silverlight) side Exception "File not found", on the server side "The ConnectionString property has not been initaliazed" or "The membership provider name is invalid" etc.. It's clear for me, because my own provider is implemented into a separate class libary, and don't get a configuration settings via WCF from Silverlight app. My question is then, how can I do that? How can I "send" the configuration settings via WCF? Is it required to implement security certificate by all? Is this a good way to using membership in Silverlight?

Thanks for your help,

Christian from Hungary

kfekete

Loading...
Joined on 03-04-2008
Posts 3
Microsoft Communities