[Lazarus] Frontend lazarus with remote comunication through cgi

Michael Schnell mschnell at lumino.de
Tue Apr 6 12:32:34 CEST 2010


On 04/03/2010 10:49 PM, Khaoz wrote:
> 1) On the client side i want only to have the forms (and validations),
> maybe some dto (data transfer object) or model class (extended from
> tcollection and tcollectionitem) to send/get data to the web server.
> 2) On the server side receive/send the data and do updates, inserts,
> validations... etc...
>   

What we did (using Delphi instead of Lazarus on the Server site and
Flash "Action Script" instead of Java script on the client site, but
this should not make a huge difference) is:
 - Use SOAP as the communication protocol
 - Action Script already provides most of the SOAP protocol
 - use IIS with ISAPI CGI -  API
 - Use Remobjects on the server site to do a very simple the ISAPI dll
("Gateway") and have it do the SOAP protocol
 - Do a normal application for the business logic
 - Use Remobjects' propriety protocol on windows messages to have same
communicate with the ISAPI dll

Of course you would need to buy RemOBJ for this (AFAIK, RemOBJ now does
support Free Pascal, Lazarus support is not strictly necessary).

If you want to avoid any part of the logic at the client site you could
try ExtP / ExtPascal / ExtJS that works with a standard Java Script
Framework to create a HTTP "Remote GUI" for Lazarus Programs. This does
seem to work fine, but I suppose ("realtime") notifications from the
business logic towards  the Client (aka "Comet") are not yet fully
supported. I learned that ExtJS does provide this, so the Pascal part
should be doable on top of this.

-Michael




More information about the Lazarus mailing list