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
3
votes
2 answers

How to pass and return a Stream using DataSnap in Delphi XE6?

How to pass and return a Stream using DataSnap in Delphi XE6? When I call my server side method, my stream is the correct class, has a size, and position. However, it when it comes accross to my client, the class is not what I expected, and it has…
John
  • 507
  • 3
  • 13
3
votes
0 answers

IPv6 connection with DataSnap

At WWDC 2015 Apple announced the transition to IPv6-only network services in iOS 9. Starting June 1, 2016 all apps submitted to the App Store must support IPv6-only networking. My Delphi IOS App have a IPv4 IP, im using a TDSRestConnection now in…
Dison
  • 103
  • 1
  • 1
  • 12
3
votes
1 answer

DataSnap Server Methods - Marshalling nesting objects

I have a datasnap client / server in Delphi XE6 I am receiving an invalid pointer operation in the following server method call on the client side. S := ClientModule1.ServerMethods1Client.getReport(RunReportObj, ReturnFileSize); when I…
John
  • 507
  • 3
  • 13
3
votes
2 answers

Where can I find MIDAS library source code?

I investigate a strange bug in my Delphi application and suspect that the problem might be in Midas.dll. I need the source code to review. Is it open? Where can I find it? I have XE7 and Delphi 10 Seattle installed and I see only interface units…
barbalion
  • 165
  • 7
3
votes
2 answers

Datasnap vs SoapServer

What are the advantages in using DataSnap compared to writing a soapserver application. I know Datasnap can use TCP/IP instead of soap. Regards Sandeep
user421379
  • 51
  • 2
3
votes
2 answers

JSONMarshalled not working in Delphi XE10 (again)

I have a class I want to pass to a datasnap server, but the class contains this field Picture which should be a TPicture but for now I use an integer to avoid getting the marshall error "tkPointer currently not supported" :( I have tried omitting a…
hhaumann
  • 272
  • 2
  • 19
3
votes
1 answer

Delphi & Datasnap - Connection Timeout, Communicataion Timeout or a way to avoid Client App to hang when no server response

I am trying to use a Client-Server Datasnap based architecture. The client is inside an Android App that connects by Wifi with the Server Program which runs in a PC. This are the server and client features: Server Side: Server…
Laureano Bonilla
  • 335
  • 3
  • 18
3
votes
1 answer

Delphi JSONArray SetJSONValue access violation

I have a JSONArray being passed as a parameter to my server. I have a method generated by the "generate datasnap Client Classes" procedure and when it gets to the first "SetJsonValue" line it gives me an access violation, this error comes and goes…
3
votes
1 answer

Delphi XE3 - datasnap REST server UTF8 output

I am implementing the REST service in Delphi XE3. Actually accessing: var metaData: TDSInvocationMetadata; metaData.ResponseContent:= output; to generate the XML output. Unfotunatelly after hours of testing various UTF8 to Unicode conversion…
3
votes
2 answers

How can I obtain the authenticated Username and Password in a Datasnap Server Methods unit?

Datasnap authentication is pretty straightforward once you use the correct parameter names (explained in Delphi Datasnap Server User Authentication). The next problem is to be able to use those same credentials when using a FireDAC Database…
Milan Vydareny
  • 111
  • 3
  • 10
3
votes
0 answers

How to authenticate delphi rest server with XMLHttpRequest?

I need help here. I've created a basic Delphi rest template using the wizard and setup a simple authentication method using the AuthenticationManager. procedure TWebModule1.DSAuthenticationManager1UserAuthenticate( Sender: TObject; const Protocol,…
hal0360
  • 81
  • 1
  • 7
3
votes
2 answers

Delphi XE4 Datasnap with CORS

I am developing a datasnap server with REST. When the client trying to use a POST request the browser is trying to execute a OPTIONS request first that my server can't respond. Searching I found that is a browser security issue named CORS (Cross…
3
votes
3 answers

Delphi - Unit x was compiled with a different version of x, when fixing a VCL bug

I am using Delphi XE6 and using Datasnap and JSON in my project. There is a bug I want to correct in the VCL unit System.JSON.pas (in the TJSONString.ToString function) where it should be escaping backslash characters as well as quotes. In order…
Jonathan Wareham
  • 3,357
  • 7
  • 46
  • 82
3
votes
1 answer

Why am I getting the "EDBClient: Mismatch in datapacket" exception?

I'm often getting this exception "EDBClient: Mismatch in datapacket" when I call ApplyUpdates on a particular ClientDataSet. I can't reproduce on my machine and I think it started after upgrading to Delphi 2010, because this code is untouched for a…
Erick Sasse
  • 2,779
  • 3
  • 24
  • 30
3
votes
1 answer

How can I access/modify headers of request/reponses in a Delphi 2010 DataSnap Server

I'm in the process of building a DataSnap Server that functions as WebDAV server and I'm trying to read the request headers when using a DSHTTPService and then modify the response headers. Can anyone point me in the right direction? I've notice the…
GoldenTao
  • 246
  • 2
  • 5