datasnap

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

放肆的年华 提交于 2020-03-02 05:44:34
问题 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 Methods TSQLConnection Driver: Firebird. KeepConnection: true. Server Container TDSServer Queuesize: 100 ChannelresponseTimeout: 3000 TDSTCPServerTransport BufferKBSize: 32 KeepAliveEnablement: kaDisabled MaxThreads: 30 PoolSize: 10 Port: 211 Client Side Main

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

泪湿孤枕 提交于 2020-03-02 05:44:27
问题 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 Methods TSQLConnection Driver: Firebird. KeepConnection: true. Server Container TDSServer Queuesize: 100 ChannelresponseTimeout: 3000 TDSTCPServerTransport BufferKBSize: 32 KeepAliveEnablement: kaDisabled MaxThreads: 30 PoolSize: 10 Port: 211 Client Side Main

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

我与影子孤独终老i 提交于 2020-01-22 19:49:22
问题 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 thin client, a stateless server app and a database server. What I would be able to do is to detect and handle connection loss (internet connectivity) between the client and the server app to handle it appropriately, ie: Display an informative

Delphi DataSnap framework adding stuff to JSON message

一笑奈何 提交于 2020-01-22 14:52:07
问题 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":{ "FIssueNo":90210, "FTitle":"Beverly Hills...that''s where I want to be", "FKind":"Wishlist" } } Well formed JSON. The problem is that when the message is received by the client, there's a bunch of stuff added to it and it looks like this: {"result": ["{\"type\":\

Delphi DataSnap framework adding stuff to JSON message

冷暖自知 提交于 2020-01-22 14:52:07
问题 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":{ "FIssueNo":90210, "FTitle":"Beverly Hills...that''s where I want to be", "FKind":"Wishlist" } } Well formed JSON. The problem is that when the message is received by the client, there's a bunch of stuff added to it and it looks like this: {"result": ["{\"type\":\

Datasnap in 10.3 Rio incompatible with previous versions

那年仲夏 提交于 2020-01-15 05:48:05
问题 We have a problem with Datasnap RESTfull, it seem to have an incompatibility between 10.3 Rio and 10.2 Tokyo (and all bellow) about Datasnap RESTfull function implementation. The problem: We have a server, builded with 10.2 currently running and servicing a lot of users. If we update the server with the one compiled with Delphi 10.3 Rio, the current 10.2 client (Win, MacOS, iOS, Android) receive the following error message: Internal: Field FValue cannot be found in type TJSONString. Conversly

Post JSON data to RESTful datasnap server from delphi client

北城余情 提交于 2020-01-02 16:18:06
问题 I need to send a simple JSON object to a Restful datasnap server (Delphi) from a Delphi client. I am using Delphi XE. Can anybody help me out with the code? I am trying for hours but not getting it.. Please ask if details are not sufficient Edit: Here is server side method declaration: procedure updatemethodnme(str:string):string; and here is client side code: function PostData(request: string): boolean; var param: TStringList; url, Text,str: string; code: Integer; http: TIDHttp; begin Result

Delphi XE – Datasnap Filter problems

為{幸葍}努か 提交于 2020-01-01 07:00:27
问题 I have a tcp/ip Datasnap -XE Server that uses a PC1 and Zlib filter On the Client both of these filters are defined in DataSnap TSqlConnection When the client connects to the server I get a "Connection Closed Gracefully” error message If I only use the PC1 filter on its own - there is no problem If I only use the Zlib filter on its own - there is no problem Any Ideas on how I can get both filters working at the same time? 回答1: You need to deploy the libeay32.dll and ssleay32.dll with your

Access remote database using DataSnap technology in C++ Builder 10.1 Berlin

会有一股神秘感。 提交于 2019-12-31 03:59:29
问题 How to query and get results from remote database using DataSnap technology in C++ Builder 10.1 Berlin ? I want to build a simple solution having two VCL Forms Applications, like client(1) and server(2), running on two different windows os computers, connected on same local network. But I cannot accomplish this simple task and this is what I tried to do: On the server application (2), I use: TSQLConnection *SQLConnection1; TSQLQuery *SQLQuery1; and I will load a SQLite database version 3: if

Upload file to DataSnap REST server via TStream

只愿长相守 提交于 2019-12-30 11:12:44
问题 I've built a DataSnap REST server using Delphi XE2 and I've added a server method for uploading files via TStream : function TServerMethods.updateUploadFile(sFilename: string; UploadStream: TStream): string; I want to be able to call this from a number of different clients (Android, iOS etc) and I've been testing the method using various REST clients such as Postman (Chrome plugin). However so far I cannot get it to accept the content for the HTTP POST body. Whenever I send the POST command I