CodeRage 12 - Customising DataSnap Server Method Output

Опубликовано: 19 Март 2026
на канале: Bob Swart (aka DrBob42)
908
13

DataSnap Server methods return output in a way that DataSnap Clients expect. A TDataSet returns JSON in a specific format, and so does a TFDJSONDataSets type.
This is ideal for DataSnap Clients, but sometimes less ideal for developers using other tools to consume this JSON output. Or maybe you want to return output in XML format instead of JSON?

This session demonstrates how we can use the TDSInvocationMetadata class to fully customise the output of DataSnap Server methods, returning the JSON you want or even XML or any other output format you need.