datasnap Questions
2
Solved
In my client application I'm using the following code to add a token in the header:
RESTRequest.Params.AddItem('Authorization', 'Bearer ' + MyToken, TRESTRequestParameterKind.pkHTTPHEADER, [TRESTR...
Amie asked 27/1, 2016 at 11:52
3
Solved
I have a JSON Object, let's name it jObject that looks like this:
{
"id": 0,
"data": "[{DAT_INCL: \"08/03/2012 10:07:08\", NUM_ORDE: 1, NUM_ATND: 1, NUM_ACAO: 2, NUM_RESU: 3},
{DAT_INCL: \"08/0...
1
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 ...
3
Solved
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 ...
4
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...
Viscometer asked 9/7, 2012 at 13:5
3
Solved
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...
Plumcot asked 27/7, 2013 at 11:58
2
I have a problem when I try my app on an other computer without Delphi.
If I put midas.dll in the same folder / directory on System32 I always get error message Error loading midas.dll, but if I p...
9
Solved
I'm toying around with Delphi. Most of my desktop development is done in .Net, and embedded systems with C. I've done some web development in RoR & Python (Django, CherryPy) I am interested in ...
1
I'm connecting to a DataSnap server using a generated DS client proxy class, via TDSRESTConnection. The connection works fine and I can call the server methods. I now want to connect through a prox...
Bursary asked 4/8, 2017 at 14:55
2
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 t...
Santasantacruz asked 14/5, 2015 at 21:37
2
Solved
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 ma...
1
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 Me...
Bitters asked 29/1, 2015 at 19:31
0
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 T...
Cootch asked 3/10, 2014 at 13:14
2
Solved
When you return an image using a file stream object in a Delphi rest server, it will not display in a browser. Here is an example method that returns an image:
function TServerClass.Image: TFileSt...
3
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.T...
2
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 ...
Demimondaine asked 13/8, 2012 at 5:10
2
I am using Delphi XE2 to write DataSnap REST service. I notice that the REST URI in DataSnap must strictly follow this format (refer here):
http://my.site.com/datasnap/rest/URIClassName/URIMethodN...
Pettifog asked 12/5, 2012 at 9:17
1
Solved
According to dr. Bob it can be done. Can someone provide step by step example or some tutorial?
Nicodemus asked 6/2, 2014 at 13:15
2
Solved
Considering the following:
We have a 32 bit Datasnap server installed on a 64 BIT Windows Server
In embarcadero\rad studio\11.00\redist are 2 folders : 32 bit and 64 bit, with in each a midas.dll.
...
Unkennel asked 14/5, 2013 at 15:11
1
Solved
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 I...
Afterbirth asked 26/12, 2012 at 22:57
1
In my Datasnap client application I use 1 TSQLConnection for my methods and ProviderConnection.
The problems arise when the connection is lost. Both TSQLConnection.Connected and TSQLConnection.Conn...
Pasta asked 12/12, 2012 at 16:30
3
Solved
We want to start a big multi-tier application. The server side application must respond to more than 1000 users at the same time. We want to create server application by 64 bit compiler and client ...
Balkin asked 3/11, 2012 at 17:24
1
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 libra...
Hyksos asked 25/10, 2012 at 10:9
2
I wrote a small REST server with the REST datasnap in delphi XE2.
There is a default mapping between HTTP methods (POST, PUT etc.) and the functions defined in delphi, this is done by a delphi comp...
Oldworld asked 22/11, 2011 at 16:11
1
I have a quite big DataSnap server that will be running 24/7, it will substitute a currently running MIDAS (COM) server. Now I'm facing the problem of how to update that server without having to fo...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.