I am creating a service in my XDTATA server. When I compile the server project everything is fine.
When i add the service unit to my client project and try to compile i am getting an error: can't find unit XData.Service.Common
Can you advice please.
Here is the source of the service unit:
unit ReportService;
interface
uses
XData.Service.Common;
type
[ServiceContract]
IReportService = interface(IInvokable)
['{4CA70267-5A30-4D8B-B2FE-F2FFB6B40FEE}']
// [HttpGet] function Sum(A, B: double): double;
// By default, any service operation responds to (is invoked by) a POST request from the client.
[HttpPost] function BuildReport(TemplateID_p: string; ProcedureID_p: integer; FacilityID_p: integer; Foldername_p: string): integer;
end;
implementation
initialization
RegisterServiceType(TypeInfo(IReportService));
end.