First, you can configure data services in a web configuration file. The contract used by the DataService is called System.Data.Services.IRequestHandler.
Here is what you can do in the web configuration file to configure it.
In the Service tag of the system.servicemodel element add
<service name="{you service type name including the namespace ie myapplication.myservice}"> <endpoint address="" binding="webHttpBinding" contract="System.Data.Services.IRequestHandler"> </endpoint> </service>
After that, you can start customizing all mans using the standard WCF configuration items.
Secondly, to enable or disable authentication methods for a specific service in IIS, you can do the following:
In the IIS snap-in, right-click your utility file (i.e. yourservice.svc) and click properties. In the properties, go to the "File Security" tab and click the "Edit" button in the "Authentication and Access Control Group" field. after that, this is exactly the same as configuring directory security in IIS.
As a final suggestion for any troubleshooting problem, it is important to turn on the wcf indication when you configure it using the xml configuration written to WCF, wcf data logging is rich and very informative.
You can learn more about this at WCF Administration and Diagnostics
Hope I was able to help you with your problem.
let me know how things are.
Hi
Daniel Portella
UPDATE:
Hi Schneider
To specify an authentication scheme in xml below
For example Windows authentication
<?xml version="1.0" encoding="utf-8"?> <configuration> <system.serviceModel> <bindings> <webHttpBinding> <binding name="MyBindingName" > <security mode="Transport"> <transport clientCredentialType="Windows" /> </security> </binding> </webHttpBinding> </bindings> <services> <service name="{you service type name including the namespace ie myapplication.myservice}"> <endpoint address="" binding="webHttpBinding" bindingConfiguration="MyBindingName" contract="System.Data.Services.IRequestHandler"> </endpoint> </service> </services> </system.serviceModel> </configuration>
For other types of authentication, please check the MSDN libraries for examples.
Common Security Scenarios