在WCF webHttp和enableWebScript之间的区别是什么?我应该使用一个WCF REST POST请求?
What is the difference between webHttp and enableWebScript in WCF? Which should I use for a WCF REST POST request?
为了让您的WCF服务的RESTful,你将不得不使用 WebHttp一起的WebHttpBinding
To make your WCF service RESTful, you will have to use WebHttp along with WebHttpBinding
要访问AJAX页面为您服务,您将不得不使用enableWebScript 。这是类似于添加[ScriptService]属性中的asmx服务
To access your service from AJAX pages, you will have to use enableWebScript. This is similar to adding [ScriptService] attribute in asmx services.
因此,如果服务必须是宁静的,但是你DONOT想从AJAX访问它,你不必包括enableWebScript。
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