datasnap

DUnit Testing in a Midas/DataSnap project

How does one setup DUnit Testing in a Midas/DataSnap project in Delphi 2006 Edit How does one set up a Dunit Test into a TRemoteDataModule The project wizard in Delphi 2006 does not work with TRemoteDataModule ...

What is the best Delphi n-tier low bandwidth technology?

I need to deploy a Delphi app in an environment that needs centralized data and file storage system (for document imaging) but has multiple branch offices with relatively poor inter connectivity. I believe a 3 tier database application is the best way to go so I can provide a rich desktop experience with relatively light-weight data tra...

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

Hi everybody, 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 protoype using datasnap 2009. So i've got a thin client, a stateless server app and a database server. What i would ...

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 Delphi version, just by launching or by running the TRegSvr utility). We can do this even whi...

How to use consume in process server method with DataSnap 2010

I define a server method: TServerMethod = class(TPersistent) public function EchoString(Value: string): string; end; The method EchoString return an equivalent Value string. I then use TDSTCPServerTransport with TDSServer and TDSServerClass to wrap the server methods. In client side, I create a DataSnap TSQLConnection and generate...

Can we replace use TDSProviderConnection to replace TLocalConnection for in-process DataSnap application?

I able to access server method by in-process DataSnap application. Click here for details. However, there is another aspect of in-process datasnap application. It is the IAppServer or TDataSetProvider. Prior to Delphi 2009, I use TConnectionBroker with TLocalConnection for in-process datasnap access. The new Delphi 2009/2010 DataSnap a...

How to manually invoke DSProxyGEN.EXE to generate Delphi DataSnap proxy client?

Hi, I am using DataSnap of Delphi 2010. There is a DSProxyGen.EXE utility to allow us generate proxy client unit. Does anyone how to consume this utility in command line to generate the proxy client without using TSQLConnection's context menu? ...

Is that possible to run IIS's w3wp.exe in limited user account?

Hi, I am using Windows 7 and IIS 7. I am writing Delphi DataSnap ISAPI. I wish to trace bugs occurs in my ISAPI dll. I learn using "w3wp.exe -debug" may help to debug ISAPI dll in Delphi IDE. However, I wish to debug my ISAPI in limited user account instead of administrator group. I have set access right to folder "C:\Windows\Syste...

How to write a Remote DataModule to run on a linux server?

Hi, i would like to know if there are any solution to do this. Does anyone? The big picture: I want to access data over the web, using my delphi thin clients. But i´would like to keep my server/service writen in pascal. The 'not so' big picture: I´m trying to write a php to emulate a SOAP Midas packets to ClientDataSets in delphi, but ...

big streams with DataSnap

Hello, I'm trying to transfer some big streams (~1Mb) between DataSnap server/client but to no avail. I'm trying to understand the code of Jim Tierney (http://blogs.embarcadero.com/jimtierney/2009/04/06/31461) with no luck and i can't even compile the code because of a missing library, anyway ... The max size of a stream i`m able to r...

How to return a record in a DataSnap method.

I wish to be able to declare a Data Snap method with the following signature type TLoginInfo = record Username: string; Password: string; LastLogged: DateTime; end; function GetLoginInfo(const UserId: Integer): TLoginInfo; When I try to call it it says that TLoginInfo is not well known. ...

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 the server be able to receive responses from the server be able to connect up to 8 players ...

generalized request function in DataSnap 2010 ?!?

This is a client-side function i'm trying to build, more generalized, which will allow me to call different server-side procedures which return TDBXReader. Right now it works, BUT i'm facing couple of problems and i need your help: (most important) what do you think about this aproach ? any suggestions/advices ? how can i free the vLCl...

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 Trace TDSRequest and TDSResponse are ancestors of TDSRequestIndy and TDSResponseIndy and...

"How to" for DataSnap Filters Compendium

Hello Folks, I'm trying to use Daniele Teti's Datasnap Filters Compendiun (the cipher ones) without success. Someone have a 'how to' for cipher filters for Datasnap? Regards. ...

Programs built on Datasnap

Hi I have done a search on Google for applications writen with Datasnap and didn't find much information. What well know applications are written in Datasnap 2009 / 2010 ? Is using Datasnap 2010 a viable choice compared to using other frameworks like RemObjects, Midware or kbmMW. Cheers AJ ...

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 long time. An additional information is that I don't use midas.dll, I compile MidasLib u...

How do I get a remote SQLConnection for TDSProviderConnection.SQLConnection?

With DataSnap 2009 i seems to be possible to use a remote database connection in the client datamodule, using a TDSProviderConection and an associated TSQLConnection. The client side is easy to set up, I drop a TSQLConnection on the form and link it to the TDSProviderConnection component. But what are the steps in the remote datamodule ...

How to get the client IP in DataSnap 2010

Hello folks, Someone can tell me how to get the client ip of a connected session from the server side?. Thanks ...

Recommendations or comparisons on Indy's TidHTTPServer versus Delphi's TDSHTTPService

I need to implement a small, standalone web server that will be used to process REST API calls, using Delphi 2010. There seem to be two easy choices available with Delphi 2010 out of the box: Indy's TidHTTPServer and Delphi's own TDSHTTPService. I am familiar with Indy components and would probably use them without question; there is a...