.Net Client To Delphi custom DA servver

Hi,

Currently we have custom DA server on Delphi with DataAbstract and custom services implemented. On client side we’re using .NET framework to consume it. That’s great when we’re using DataAbstract SDK. How can we consume custom services inside DataAbstract eg: GetServerTime.

Thanx , Teo

you can do this by different ways:

  • launch ServiceBuilder and add a new method.
    in IDE add new method and implement it
function GetServerTime: TDateTime;
  • convert your RODL-based server to Code-First server and add to your service something like
[ServerMethod]
function GetServerTime: TDateTime;

note: second way works only for XE4+

after this, in .NET client you need to regenerate interface file

We use Delphi XE3 Custom server. Delphi client working ok.
But, c# client can not consume DataService and methods defined in them.
How c# client can consume them in old fashion (without code first)
I you want, we can send you url to our server

Thanx, Teo

CodeFirst is a server-side thing. There is no difference for client how the server-side services are defined.

What exactly do you mean as ‘C# client cannot consume DataService’? It cannot connect, it cannot fetch data, something else?