Making delphi communicate with a c# service
Posted on 2016-09-26
Hi, I have developed over the years a software using Delphi. I need to add a function which can only be programmed using c#, this function would basically receive a command, process some DATA and return a result.
My idea was to build a c# service which would be always loaded on a server (or the workstation itself) and somehow making request to this service from my delphi application.
I know a little about REST, I'm not sure if this could be a possible solution, what I like is that I send a JSON and get the answer via a IP adress, that could be good but I'm not sure how to create a REST server and if I can use c# code to read the JSON, get the info and send back the result to my delphi app.
I could also write in a SQL database when I wan't the service to return DATA but since the c# part is going to be called a lot, I fear that this could make too much traffic on the network.
In short, I need help to find a solution to make a request to a running c# software from delphi with some parameters and read a result.