2 questions Rest using VCL, FireDac and MSSQL I have written several Rest servers in XE2 awhile back but never got to see the client. They were simple and returned JSONs that I made by hand. They were all POST, in that my method always started with UPDATE. Now I am working with Seattle and a lot of new toys have been added to Rest. I did Kaster's tutorial, which was helpful and got me halfway there. I like the client wizard in the TDSRestConnection component. But no matter how I code my server, the wizard (if called that) always creates GET responses. Is there anyway for it to generate POST classes? Does changing the Request type to Post make it so? Will it send the data though the body of the request? I will be returning large amounts of data to the server. It will be in the identical structure to the data I GET but not actually a mutation of that data. It is an addition to. I do not want to write teh data back to the server record by record, in that this would be very inefficient, I would think. I would like to send a dataset back to the server using a TFDMemTable and Data.FireDACJSONReflect. I am a little confused in how to send data back, much as I have received it i.e. "GET". In other words, I want to reverse the process. I would be happy with the least amount of advice or suggestions. A few bones, as such. thanks --springer
↧