locked
What does MaxDataServiceVersion do? RRS feed

Answers

  • The purpose of sending MaxDataServiceVersion from the client is to tell the server what is the highest version of the protocol the client understands.

    For e.g. if someone writes a v3 client and in future, there is odata 4.0 server, this header tells the server that the client does not understand 4.0 features, and the server should not use any 4.0 features when writing the response. So the server will either respond with 1.0, 2.0, 3.0 or error if the response contains any new 4.0 features.

    There is something that we added in v3 - MinDataServiceVersion. This header tells the server what's the minimum version that the client understands. In this case, the server will send something equal or greater than the value of MinDataServiceVersion.

    Hope this helps.

    Thanks

    Pratik


    This posting is provided "AS IS" with no warranties, and confers no rights.

    • Marked as answer by DavidThielen Monday, August 6, 2012 11:02 PM
    Monday, August 6, 2012 10:38 PM
    Moderator
  • That's absolutely right.

    Thanks

    Pratik


    This posting is provided "AS IS" with no warranties, and confers no rights.

    • Marked as answer by DavidThielen Monday, August 6, 2012 11:02 PM
    Monday, August 6, 2012 10:57 PM
    Moderator

All replies

  • The purpose of sending MaxDataServiceVersion from the client is to tell the server what is the highest version of the protocol the client understands.

    For e.g. if someone writes a v3 client and in future, there is odata 4.0 server, this header tells the server that the client does not understand 4.0 features, and the server should not use any 4.0 features when writing the response. So the server will either respond with 1.0, 2.0, 3.0 or error if the response contains any new 4.0 features.

    There is something that we added in v3 - MinDataServiceVersion. This header tells the server what's the minimum version that the client understands. In this case, the server will send something equal or greater than the value of MinDataServiceVersion.

    Hope this helps.

    Thanks

    Pratik


    This posting is provided "AS IS" with no warranties, and confers no rights.

    • Marked as answer by DavidThielen Monday, August 6, 2012 11:02 PM
    Monday, August 6, 2012 10:38 PM
    Moderator
  • Hi Pratik;

    Ok, so DataServiceVersion is the version I'm talking in and MaxDataServiceVersion is the maximum version the service can reply in. Correct?

    thanks - dave


    Who will win The International Collegiate Programming Championships?

    Monday, August 6, 2012 10:43 PM
  • That's absolutely right.

    Thanks

    Pratik


    This posting is provided "AS IS" with no warranties, and confers no rights.

    • Marked as answer by DavidThielen Monday, August 6, 2012 11:02 PM
    Monday, August 6, 2012 10:57 PM
    Moderator