#1 2014-06-04 23:16:16

sms
Member
Registered: 2014-06-04
Posts: 22

mORMot with Delphi XE6 REST mobile client

Hi Arnaud,

I was planning to develop a mobile app using Datasnap in XE6 and was searching for the
performance of datasnap before going deep into datasnap.
Came across roberto schneiders tests and heard about mORMot from that site.
I have download framework and all other zip files I found , samples, documentation.
Started reading documentation .
Let me first explain what app I have in my mind.
I was planning to create a datasnap REST server which can talk to my firbird/mysql db
and a website to manage the administration side of this database and a mobile REST datasnap
client which can run in both IOS and andriod. I want to have a scalable server. In future
the users of mobile app can grow . That's why I started thinking about the server performance before
going deep into datasnap.

From many forum pages , I came to know that I can use TSQLHttpAPIServer to create a
RESTful server for me. How can I create a mobile app to communicate to this server
using Delphi XE6 ? Can I simply create a mobile app and using TRESTClient component, can I connect
to mORMot RESTFul server ? Can I use SynCrossPlatformJSON.pas along with XE6's TRESTClient ?

The structure of the project I want is

DB <-> Rest Server <-> Rest mobile client<-> Mobile users
          |
    Web client


Any advice is appreciated :-). I am going to learn more on the framework in the coming days anyway.
Thanks for such a powerful framework.

Kind Regards,
Sinu

Offline

#2 2014-06-04 23:55:08

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: mORMot with Delphi XE6 REST mobile client

From external tests, mORMot is far ahead DataSnap in terms of speed, scalability and stability.

mORMot can directly be used for your scenario.
The REST server could be a mORMot server, and you could use our SynCrossPlatform* units to create a FMX mobile client.
I do not know much the REST mobile client available within Delphi XE6, but I guess you may better stick with our SynCrossPlatform* solution instead.
We may add cross-platform TDataSet client components, if needed.

But feedback is needed for mobile support using SynCrossPlatform* units.

BTW, ensure you did test FMX on the mobile plaform before investing most of your future on it.
On our side, we would rather use AJAX/HTML5 rich web apps, package as native iPhone/iPad/Android/WindowsPhone/BlackBerry applications using http://phonegap.com/
mORMot rocks with such AJAX clients.

Please ensure you use the latest 1.18 "unstable" branch, for both SAD 1.18 pdf documentation and nightly source code.

Offline

#3 2014-06-05 00:04:39

sms
Member
Registered: 2014-06-04
Posts: 22

Re: mORMot with Delphi XE6 REST mobile client

Thanks for the very quick reply :-).

I am used to Delphi too much , that's why I am going behind that. I'll check PhoneGap too.

I think I wrongly download 1.17 version from some ink. I'll get latest 1.18 now.

Thanks

Offline

#4 2014-06-05 04:28:16

sms
Member
Registered: 2014-06-04
Posts: 22

Re: mORMot with Delphi XE6 REST mobile client

I have downloaded 1.18 and tried to compile sample app in Delphi 6. I am getting Internal error :C3890 and goes to SynCommons.

Am I missing something ? Downloaded FastMM4 and added the path. Added Mormot source path too .

Offline

#5 2014-06-05 08:05:00

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: mORMot with Delphi XE6 REST mobile client

There seems to be an issue with Delphi 6 and the nightly version.
Delphi 6 can be pretty buggy....

No problem with Delphi 7 and later.

I will check what's wrong.

Offline

#6 2014-06-05 08:39:49

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: mORMot with Delphi XE6 REST mobile client

We have just circumvent Delphi 6 "Internal error: C3890" compiler limitation.
See http://synopse.info/fossil/info/ed06417866

Thanks RalfS for pointing out the faulty line!
http://synopse.info/forum/viewtopic.php … 842#p10842

big_smile

Offline

#7 2014-06-05 09:13:03

sms
Member
Registered: 2014-06-04
Posts: 22

Re: mORMot with Delphi XE6 REST mobile client

Thanks AB.

Now I am trying to compile the sample apps in XE6. But it fails and says Synopse.inc file not found. Control goes to the {$I Synopse.inc} of the project source.
I have this file in the folder and path is added in the project. Any clue ?

Thanks,

Offline

#8 2014-06-05 09:21:55

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: mORMot with Delphi XE6 REST mobile client

Set the include path folder, as stated by Readme.txt and the SAD 1.18 pdf.

Offline

#9 2014-06-06 09:38:24

sms
Member
Registered: 2014-06-04
Posts: 22

Re: mORMot with Delphi XE6 REST mobile client

Hi , I could compile few sample apps. When I ran Server app under :14 - Interface based services", I am getting exceptions and application closes.

how can I attach error screen shot here? Couldn't find any option to attach a file.

Offline

#10 2014-06-06 09:46:09

sms
Member
Registered: 2014-06-04
Posts: 22

Re: mORMot with Delphi XE6 REST mobile client

Sorry to write before doing some checks. It's working fine when I ran the server as administrator. Thanks.

Offline

#11 2014-06-06 09:48:57

martin.suer
Member
Registered: 2013-12-15
Posts: 76

Re: mORMot with Delphi XE6 REST mobile client

After running the server as administrator once, you can run it as normal user

Offline

Board footer

Powered by FluxBB