What is the difference between webHttp and enableWebScript in WCF? Which should I use for a WCF REST POST request?
To make your WCF service RESTful, you will have to use WebHttp along with WebHttpBinding
To access your service from AJAX pages, you will have to use enableWebScript. This is similar to adding [ScriptService] attribute in asmx services.
So if the service has to be restful, but you donot want to access it from AJAX, you dont have to include enableWebScript.
http://msdn.microsoft.com/en-us/library/bb924425.aspx
http://msdn.microsoft.com/en-us/library/bb675191.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With