I tried RFASimpleInsert example and its working fine for both Refresh and Update. Both verbs modify the data for a RIC, but how this makes differences to Consumer ? What would happen if I use only Refresh for all the updates ?
RespMsg respMsg = newRespMsg();
respMsg.MsgModelType = RDM.MESSAGE_MODEL_TYPES.MMT_MARKET_PRICE;
respMsg.RespType = RespMsg.RespTypeEnum.Update;
respMsg.AttribInfo = attribInfo;
postMsg.Payload = respMsg;
It depends on the server.
Assume that you post to TREP (ADH/ADS) cache and it uses default configuration;
With refresh message, you can create new items within the cache or add new fields to an existing item in the cache. The consumer will receive refresh message from TREP.
With update message, TREP will reject the post if the item is not already in the cache and new fields will not be added to the cache. The consumer will receive update message from TREP.
There are other interactions and TREP configuration may change these behaviors. For detail explanation, you should consult TREP Software Installation Manual.