Skip to main content

Microsoft Silverlight

Answered Question Membership Provider access through WCF web service in Silverlight 2RSS Feed

(0)

ckiszka@msn.com
ckiszka@...

Member

Member

11 points

32 Posts

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
ckiszka@...

Member

Member

11 points

32 Posts

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…”

scindy
scindy

Member

Member

54 points

15 Posts

Answered Question

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

ckiszka@msn.com
ckiszka@...

Member

Member

11 points

32 Posts

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…”

kfekete
kfekete

Member

Member

4 points

3 Posts

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

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities