当我设置MaxProtocolVersion
为 V3 时,我的服务不再接受声明MaxDataServiceVersion: 2.0
. 该服务的响应是:
HTTP/1.1 400 Bad Request
Cache-Control: private
Content-Length: 158
Content-Type: application/json;odata=verbose;charset=utf-8
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Content-Type-Options: nosniff
DataServiceVersion: 1.0;
X-Powered-By: ASP.NET
Date: Tue, 15 Jan 2013 06:57:05 GMT
{"error":{"code":"","message":{"lang":"nb-NO","value":"The MaxDataServiceVersion '2.0' enter code hereis too low for the response. The lowest supported version is '3.0'."}}}
配置为版本 3 的服务如何处理来自符合版本 2 的客户端的请求?