Questions tagged [datasnap]

DataSnap is a Delphi technology that allows the development of multi-tier applications

DataSnap is a Delphi technology that allows the development of multi-tier applications, most notably multi-tier database applications.

DataSnap offers the possibility to create Client-Server applications that communicate through the Internet, the local network, or the local host.

The main feature of DataSnap is the ability of the Client application to invoke methods that are implemented on a Server. DataSnap automatically generates the necessary interface for the Client to communicate with the Server, containing the prototypes of the Server methods.

http://docwiki.embarcadero.com/RADStudio/en/DataSnap_Overview_and_Architecture

501 questions
7
votes
1 answer

Reconcile Error: Has anyone had problems with truncated error messages?

I'm here again to ask for a help to you. This time I believe that few will respond given the great particularity of the problem which I will relate. I'm starting in the world of DataSnap, and still have things I do not understand how this error I…
7
votes
4 answers

Is there a way to use JSONP with a Delphi DataSnap REST server?

It appears that there is no way to implement a JSONP (JSON with Padding) solution using DataSnap, but I want to throw this question out here in case someone has solved this problem. Background: JSONP is a mechanism that exploits the cross site…
Cary Jensen
  • 3,751
  • 3
  • 32
  • 55
7
votes
2 answers

Datasnap : Is there a way to detect connection loss globally?

I'm looking to detect local connection loss. Is there a mean to do that, as with the events on the Corelabs components ? Thanks EDIT: Sorry, I'm going to try to be more specific: I'm currently designing a prototype using datasnap 2009. So I've got a…
Fred
  • 1,607
  • 20
  • 33
7
votes
3 answers

Concurrency control

Hello I would like to know the best way to implement concurrency control in 3 tier application? May first thought is: A client wants to edit a record from a dataset. send a request to the server asking a lock on that record the server…
Najem
  • 537
  • 4
  • 12
7
votes
3 answers

Will Datasnap be appropriate for up to 8 non-communication intensive bi-directional multiplayer game?

I am building a small multipliplayer which will need the following: it must be written in Delphi must support Internet connection (not only LAN) work over HTTP support some encryption of the packets (it may be custom) be able to send commands to…
Gad D Lord
  • 6,620
  • 12
  • 60
  • 106
7
votes
2 answers

Datasnap and SocketError

I have a datasnap server with a vcl forms client. From the client, how can I handle if the server has been say shutdown and restarted with existing client connections? This scenario raises a 10053 EIdSocketError exception. To replicate, I run up…
Jason
  • 2,572
  • 3
  • 34
  • 41
7
votes
4 answers

How Get Full Call Stack in Delphi Server Application

I have a multi-tier software that is two application(GUI,DataSnap Server) . My DataSnap server application has a bug cause occur EAccessViolation in Some times. such this : Exception EAccessViolation in module unidac160.bpl at 00010CB1. Access…
MajidTaheri
  • 3,813
  • 6
  • 28
  • 46
6
votes
0 answers

Delphi XE2 datasnap callback example

I am trying to create a small example of how to exchange objects using calbacks, but I am experiencing some problems. When server creates and broadcasts objects, some clients callback connections are closed randomly with time (sometimes after…
Kiril Hadjiev
  • 302
  • 2
  • 13
6
votes
3 answers

Delphi DataSnap framework adding stuff to JSON message

I'm working with a Delphi XE DataSnap REST server and trying to return a JSON serialized object. The result that my method is returning to the client looks like this: {"type":"ServerMethodsUnit1.TJSONIssue", "id":1, "fields":{ …
Ron
  • 141
  • 3
  • 6
6
votes
2 answers

Delphi XE8 unknown memory leaks in simple DataSnap client and server app

I have created a simple DataSnap client/server application with the wizard in Delphi XE8 using the echostring and reversestring sample methods. When I put "ReportMemoryLeaksOnShutdown := True" in the Server dpr and call the echostring and/or…
Arjan Mol
  • 61
  • 4
6
votes
1 answer

How do I map custom HTTP method prefixes on a Delphi DataSnap REST server

RESTful services created with Delphi's DataSnap provide a default mapping of prefixes for exposed REST methods from the DataSnap server based on the HTTP method type. These are as follows: HTTP Method type Prefix Example GET …
Cary Jensen
  • 3,751
  • 3
  • 32
  • 55
6
votes
0 answers

What are the differences between REST.JsonReflect and Data.DBXJSONReflect?

Delphi introduced a new JSON marshaler in unit REST.JsonReflect, a similar JSON marshaler exists in unit Data.DBXJSONReflect. Both units introduce TJSONConverters to create TJSONMarshal and TJSONUnMarshal instances. what are the differences…
Chau Chee Yang
  • 18,422
  • 16
  • 68
  • 132
6
votes
1 answer

DataSnap Rest Server windows Service

i'm try to building a DataSnap Rest Application running as a windows service, but the wizard just have "Stand-alone VCL application", "Stand-alone console application" and "ISAPI dynamic link library"(i'm using Delphi XE2 enterprise). Someone can…
JoFan
  • 61
  • 1
  • 2
6
votes
4 answers

Delphi XE2 Datasnap Session Management - get session information after page reload

I am trying to determine how to retrieve session information using a Delphi REST DataSnap server. I know that, when on the same client page, you have access to the current thread session using the TDSSession method GetThreadSession. What I want to…
ConBran
  • 369
  • 2
  • 15
6
votes
1 answer

How to skip field serialization at JSON marshalling in DataSnap?

Is there a generic way to skip field serialization at JSON marshalling in Delphi XE2 DataSnap ? TBizObjects = class DataObject: TDataObject; -- skip this field on serializaing descendants end; Model = class(TBizObject);
Raido
  • 571
  • 5
  • 11
1
2
3
33 34