Last post Oct 15, 2012 11:37 PM by lasantha
Oct 15, 2012 12:39 AM|lasantha|LINK
I have an application using seb service. I use asp.net role membership there. My question is i want to give access for all usersers to use webservice. Now i try to access it, but it is restricted by the system. What should i do now.
Oct 15, 2012 11:27 PM|Steven Cheng - MSFT|LINK
As you said that you want your webservice to allow everyone access, then I'm wondering how your webservice is built and hosted. Are you using WCF or ASMX webservice to create the webservice?
Generally, a simple way to allow everyone access is to turn off security authentication. In the hosting web application's web.config file, you can set <authentication mode="None" />.
#authentication Element (ASP.NET Settings Schema)
then, if you're using WCF service, you can also turn off the security authentication in service's binding setting. e.g.
<binding name="Binding1" ............ >
<security mode="None" />
Also, if the web application is hosted in IIS, you need to make sure the IIS application virtual directory has enabled "anonymous access".
#HOW TO: Control Authorization Permissions in an ASP.NET Application
#An Overview of Authentication and Authorization Options in ASP.NET
#Chapter 5: Authentication, Authorization, and Identities in WCF
Oct 15, 2012 11:37 PM|lasantha|LINK
I use ASMX webservice. actually this service for a login. I want to pass data from php site. (my login form is in php site). Then i want to check the parameters come from php form then return a result. That is the basic idea.