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
5
votes
6 answers

How can I update a DataSnap server while clients are still connected?

We use stateful DataSnap servers for some business logic tasks and also to provide clientdataset data. If we have to update the server to modify a business rule, we copy the new version into a new empty folder and register it (depending on the…
mjn
  • 36,362
  • 28
  • 176
  • 378
5
votes
1 answer

Delphi XE2 DataSnap - 'Connection Closed Gracefully' When Using REST Over HTTPS

I'm trying to connect to my DataSnap service using REST over HTTPS, both from my Delphi Win32 app and an Android app. In my Delphi client I get the message 'Connection Closed Gracefully', and my Android app fails with 'No peer certificate'. I'm…
Jonathan Wareham
  • 3,357
  • 7
  • 46
  • 82
5
votes
0 answers

Using DataSet returned by a datasnap ServerMethod in a thread?

I am calling a servermethod from within a thread using Omnithreadlibrary, the data is returned succesfully, but I have troubles using the data returned, everything i've tried goes with AccessViolation or even crash of the application, tryed also to…
g13013
  • 51
  • 2
5
votes
1 answer

DataSnap "Plain Old Delphi Objects" and nested objects

A new article about DataSnap in Delphi XE explains that DataSnap now is able to transfer TObject-descendants between server and client, similar to the Java Enterprise Edition concept of POJO's ("Plain old Java objects"). Does this new feature work…
mjn
  • 36,362
  • 28
  • 176
  • 378
5
votes
1 answer

Delphi DataSnap authorization not repecting TRoleAuth attribute

I am trying to implement authorization in a Delphi XE DataSnap application. I broke this down into a very simple example, but still do not see the effects of the TRoleAuth attribute for a method or class. Here is a simple DSServerMethods class that…
Cary Jensen
  • 3,751
  • 3
  • 32
  • 55
5
votes
6 answers

Can't retrieve TStreams bigger than around 260.000 bytes from a Datasnap Server

I have a Delphi 10.1 Berlin Datasnap Server, that can't return Data packets (through a TStream) bigger than around 260.000 bytes. I have programmed it following the \Object Pascal\DataSnap\FireDAC sample from Delphi, which also shows this…
Marc Guillot
  • 6,090
  • 1
  • 15
  • 42
5
votes
0 answers

Datasnap memory consumption

I am working on datasnap client server software. When executed, server reads data from my database and keeps it in memory. Every client when connecting to the server, requests the data calling a procedure on the server. But I am having problems with…
Kiril Hadjiev
  • 302
  • 2
  • 13
5
votes
1 answer

Exception handling in Delphi Datasnap REST Server

I'm struggling with exception handling inside my Datasnap REST Service (Delphi XE3 but also tried with Delphi 10 Seattle). I have written half a dozen Windows Service over the years and I always include a TApplicationEvents component so that I can…
J__
  • 3,777
  • 1
  • 23
  • 31
5
votes
1 answer

How can I supress Delphi DataSnap error message dialogs?

We run a DataSnap Delphi 2009 application on Windows 2003 Server. DataSnap Client and Server are on the same computer, using DCOM over Borland Socketserver. The client runs a background batch job. Sometimes, we discover that the client can not…
mjn
  • 36,362
  • 28
  • 176
  • 378
5
votes
2 answers

Delphi XE7 Datasnap with pure JSON

I have this: function TWS.listJSON(const id: integer): TJSONObject; var LDataSets: TFDJSONDataSets; begin LDataSets := the_list(id); //the_list:TFDJSONDataSets try Result := TJSONObject.Create; …
Magno
  • 387
  • 4
  • 13
5
votes
1 answer

Delphi 2010 Datasnap - Design Query

I am investigating moving a thick client SQL based Delphi application to Multi Tier thin clients, and have been looking at using Datasnap in Delphi 2010. I have worked through the White Paper written by Bob Swart and extended this further. My main…
Matt
  • 125
  • 1
  • 8
5
votes
2 answers

TIdHTTPWebBrokerBridge documentation

I have been searching Embarcadero sources and Indy sources for hours now, as well as Google, but failed to find any documentation on TIdHTTPWebBrokerBridge aka HTTPWebBrokerBridge (.net). What is it doing, what methods, properties and events does it…
Armin
  • 97
  • 2
  • 8
5
votes
1 answer

How to embed the MIDAS.DLL in the client executable

According to dr. Bob it can be done. Can someone provide step by step example or some tutorial?
user3181689
  • 241
  • 6
  • 22
5
votes
2 answers

Is it possible to change the Response Code when user authorization fails in a datasnap server?

Is it possible to change the HTTP Response Code in my DataSnap (Delphi XE3) server when user authorization fails? Currently it's returning HTTP/1.1 500 Internal Server Error, which can happen in many other scenarios, and doesn't help describe the…
FLDelphi
  • 508
  • 7
  • 20
5
votes
1 answer

Access Request Header in Delphi XE3 DataSnap Server

I am implementing a REST server API in Delphi XE3 (first time using Delphi in about a decade so am a bit rusty). Currently it is using Indy server for debug purposes, but eventually it will be an ISAPI dll. Now I have implemented a number of…
Joel
  • 15,654
  • 5
  • 37
  • 60
1 2
3
33 34