Icon View Thread

The following is the text of the current message along with any replies.
Messages 11 to 15 of 15 total
Thread Need more information
Fri, Jan 6 2012 3:51 PMPermanent Link

Walter Matte

Tactical Business Corporation


EWB doesn't connect to a database - you make a request to a Web Service you build.  Your Web Service can deliver from any database.

Down the road if Tim "builds" a Web Service into EDB - he can do that, it is his DB.  But he cannot build a Web Service into another DB.

Hey - maybe I'll build a generic Web Service DB - I use UniDac from Devart for other DB's and Devart now support EBD!!

Look at SuperObject for your JSON needs in Delphi - is is at:

http://www.progdigy.com/?page_id=6

http://code.google.com/p/superobject/

You have to do a bit of looking around for examples / samples on how to use SuperObject.

I attach a form and small unit that can take a TDataset and convert to JSON with SuperObject.  (Was using DBISAM).

procedure TForm1.Button1Click(Sender: TObject);
var
json:TTableJSon;
obj:ISuperObject;
s:string;
begin     

 S := json.JSonFromDataSet(DBISAMTable1);   //  Take Table

 obj := SO(s);
 memo1.lines.text := obj.AsJSon(true,true);   // Output as JSON

end;


At this point your Web Service would send the JSON data to your EWB Application to consume.

Walter



Attachments: SOTest3.zip
Sat, Jan 7 2012 6:30 AMPermanent Link

Godfrey

Ultimatesoft

Thanks for all the info and sorry for all the stupid questions.  It just that I have never created a webservice
in Delphi but would like to learn.

How do you deploy a webservice created in Delphi onto the webserver?
Sat, Jan 7 2012 11:42 AMPermanent Link

Walter Matte

Tactical Business Corporation

Godfrey:

>>How do you deploy a webservice created in Delphi onto the webserver?


See Binaries - Example - Delphi Web Server + EWB

It is a Web Server - it provides a service - the service is "time" when it is asked via "/time"

I used Port 81 since I have a real webserver running on port 80 (which is www default).

How to Deploy?   -  Well if you actually write your own web server as in this example, then that is what you deploy.  You write this as a Windows Service and deploy it that way.

One thing, your server domain hosting your EWB App has to host the Service or else it will not work - this is a restriction "domain boundaries" imposed on us all.

Walter
Tue, Jan 10 2012 4:39 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Godfrey,

<< Will the database connectivity be limited to your products or will we be
able to connect to others.  The hosting service I subscribe to only has
MySql and MS SQL >>

You'll be able to connect to any database on the back-end.  In the IDE,
initially there will be ADO/ODBC, DBISAM, and ElevateDB support for easily
creating datasets at design-time.  The general idea is that you'll
eventually be able to create basic data-aware apps for the browser with a
few clicks and some dragging and dropping.

--
Tim Young
Elevate Software
www.elevatesoft.com
Wed, Jan 11 2012 2:02 AMPermanent Link

Godfrey

Ultimatesoft

Tim

This sounds great, it would be a winner.  

Godfrey


The general idea is that you'll
eventually be able to create basic data-aware apps for the browser with a
few clicks and some dragging and dropping.

--
Tim Young
Elevate Software
www.elevatesoft.com
« Previous PagePage 2 of 2
Jump to Page:  1 2
Image