Hello! I've watched some videos about REST/Datasnap client server with XE5.

Hello! I've watched some videos about REST/Datasnap client server with XE5.
The examples I saw shows using of simple functions. I will need to return a table result.
How do I build this? Should be a procedure?

Comments

  1. Good afternoon Magno.

    In cases like this one, I use a simple solution, lists (TList or TDictionary) with objectes inside (classes like TClient for example).

    See ya!

    ReplyDelete
  2. Well, should work, but this will not return as a JSON type. I read about using Data.FireDACJSONReflect unit on Cantu's site and will gonna give a try, but I read also some people with issues. Thank you.

    ReplyDelete
  3. I was able to use FireDACJSONReflect but the data returing is such: {"FData":"QURCUwkAkwAccgA..... } is this correct?

    ReplyDelete
  4. Hi!

    Check the config of your server Rest to see encription details.

    ReplyDelete
  5. Can find nothing about setting encryption or compression. Right now trying my own JSON serializer.

    ReplyDelete

Post a Comment