Using record-type with XData Server

Hi,

I'm trying to use records with XData, here is a small example:

  TTest = record
    prpTestrec: String;
  end;

  [ServiceContract]
  IService = interface(IInvokable)
    ['{AD18F051-E82A-41DF-9D50-8424AAD77B08}']
    function fctTest: TTest;
  end;

When i start the service i get: 'Invalid result type "TTest" in method....'

Is there any chance to use records with xdata?

Greetings

XData has no support for serialize/deserialize Record types. I have a XData Feature Requests for that. Please vote for it: 2460: Add support for Record types

1 Like