Skip to content

[Delphi Tuts] DataSnap "Hello World"

Welcome to "Delphi Tuts"! Your Delphi step-by-step tutorials!

In this tutorial we are going to use Delphi XE5 to build the simplest possible DataSnap client/server system. The difficulty level of this lab is “Hello World”.

This step-by-step tutorial is intentionally very simple, so even not experienced Delphi programmers should be able to build projects described here. The objective of this lab exercise is to get familiar with basic steps needed for building DataSnap servers and clients.

Our system will consist of a server and a client applications. They will use TCP/IP as the communication protocol. The server will be implemented as Delphi VCL Forms application and the client will be FireMonkey Desktop Application. The server will provide two methods that a client can invoke: “EchoString” and “ReverseString”. In this demo we are going to build a very simple client with just an edit and a button. When a user clicks on the button, the contents of the edit box will be sent to the server, reversed and the result will be displayed in the edit.

Delphi Tuts: DataSnap "Hello World"

{ 4 } Comments

  1. Lena | December 6, 2013 at 9:17 pm | Permalink

    Hi.
    Where I can find examples/Whitepaper DataSnap for C++ Buider?
    Thank you.

  2. svismo | December 8, 2013 at 9:59 am | Permalink

    I would like to see datasnap in combination with local database example. We use local database like SQLite that we place in app.exe folder so I was wondering if we could use datasnap for the occasion. I could not find a single example on youtube that uses a small local database (Absolute database,SQLite…). Please Pawel, give us some example.:)

  3. Pawel Glowacki | December 13, 2013 at 2:55 pm | Permalink

    @svismo,
    I will look into creating such a demo. Thanks for a good tip!

  4. Senad | February 10, 2014 at 11:56 am | Permalink

    What’s the point of using Datasnap if it cant handle dates .Datasnap is limited to strings as far as I can tell….

Post a Comment

Your email is never published nor shared. Required fields are marked *

Bad Behavior has blocked 2 access attempts in the last 7 days.

Close