Passing a JSON object to Datasnap Server application
Clash Royale CLAN TAG #URR8PPP Passing a JSON object to Datasnap Server application I have a datasnap application server and a client witten in Delphi Tokyo 10.2. I need to know whether I do the communication between the two correctly. I will write down the client code here : Client Code: procedure TRemoteAcessModule.InitialiseRESTComponents(BaseURL: string); var ReqParam : TRESTRequestParameter; begin //URL to which client has to connect RESTClient1.BaseURL := BaseURL;//'http://192.168.110.160:8080/datasnap/rest/TserverMethods1'; RESTClient1.Accept:= 'application/json, text/plain; q=0.9, text/html;q=0.8,'; RESTClient1.AcceptCharset := 'UTF-8, *;q=0.8'; RESTRequest1.Client := RESTClient1; RESTRequest1.Response := RESTResponse1; RESTResponse1.RootElement := 'Rows'; RESTResponseDataSetAdapter1.Response := RESTResponse1; RESTResponseDataSetAdapter1.Dataset := FDMemTable1; RESTResponseDataSetAdapter1.NestedElements := true; end; class function TIt...