hi please answer me.
how to provide security wih wcf service using username and password without using ssl and certificates.
Thanks
RK
How to provide security wih wcf service using username and password
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


Amit PatelRank #622 · 3.8K reputationPosted May 29, 2012, 6:56 AM EDT
You can also call by code.
string uri = "http://loaclhost:8989/MyService";
EndpointIdentity epid = EndpointIdentity.CreateUpnIdentity(@"MACHINE\user");
EndpointAddress epaddr = new EndpointAddress(uri, epid); ServiceReference1.Service1Client client = new ServiceReference1.Service1Client(epaddr);
Happy Coding
Thanks