[Delphi Tuts] DataSnap "Hello World"

Posted by on in Blogs
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"
About
Gold User, Rank: 9, Points: 364
Crazy about Delphi Programming!

Comments

  • Guest
    Lena Friday, 06 December 2013

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

  • Guest
    svismo Sunday, 08 December 2013

    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.:)

  • Guest
    Pawel Glowacki Friday, 13 December 2013

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

  • Guest
    Senad Monday, 10 February 2014

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

  • Please login first in order for you to submit comments
  • Page :
  • 1