当我将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的客户端的请求?