How can we do partial post in EWS?

We contribute to large pages, changing only portions of a row. I'm 90% sure this was possible with RFA, is it possible with EWS?

Best Answer

  • Hi @pj.chan

    Yes, it is possible. I have tried to post Partial Field update to ADS using WebSocket API. ADS is able to update its cache properly. Please note that ADS expects only ASCII character for RMTES field, so application needs to convert Partial Field escape character to ASCII character set.

    image

    Below is the sample of Post message. It replaces the ROW80_1 field at position 5 with "ABCDE".

    {
    "Ack": true,
    "Domain": "MarketPrice",
    "ID": 1,
    "Key":
    {
    "Name": "TEST"
    }
    "Message": {
    "Domain": "MarketPrice",
    "Fields": {
    "ROW80_1": "[5`ABCDE"
    },
    "ID": 0,
    "Type": "Update"
    },
    "PostID": 1,
    "PostUserInfo": {
    "Address": "127.0.0.1",
    "UserID": 55555
    },
    "Type": "Post"
    }

Answers