Response is always empty. What wrong
-WebConnection is connected end URL=http://localhost:2001
-When go to browser: localhost:2001/MyService/GetClients data is load in the browser
-I have Define Service interface in 2 modules (definition and implementation)
-All service has been register
RegisterServiceType(TypeInfo(IMyService));
RegisterServiceType(TMyService);
procedure TForm1.LoadClients;
var
Client: TXDataWebClient;
Response: TXDataClientResponse;
begin
try
Client:= TXDataWebClient.Create(nil);
Client.Connection:=WebConnection;
Response:= await(Client.RawInvokeAsync('IMyService.GetClients',[]));
XDataWebDataSet1.SetJsonData(Response.Result);
XDataWebDataSet1.Open;
finally
FreeAndNil(Client);
end;
end;