Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 8 of 8 total
Thread Welcome in my nightmare with Web Servers...
Sun, Apr 12 2015 2:01 PMPermanent Link

TactiSoft

Sorry, but i really don't understand how to use Web Servers...

Here'is my story...

I'm writing an site to manage Shool : www.GestShool.com

Everything works fine when i use the local server within the IDE but when i try to use it out the IDE i got 'URI Denied' etc.

I read everything in the manual and in this forum but i can't use the Web Site i built with Elevate Web Builder.

If you wanna help....
 Try with 1) click button  'Se connecter'  2) type Identifiant : 0750141W  3) Click the button 'Rechercher'  .... and you'l get the error!!!

I launch Ewb Server and configure on differents ports, i define datasets from an ElevateDB located on an EC2 machine (Window 2008Server R2) ans test connection is ok.

Can you please light my candle because i am in a deep nightmare since 1 year and have lost my hairs....
Sun, Apr 12 2015 2:03 PMPermanent Link

TactiSoft

Correct site URL is www.GestSchool.com !
Sun, Apr 12 2015 3:13 PMPermanent Link

Raul

Team Elevate Team Elevate

<<TactiSoft wrote:
 Try with 1) click button  'Se connecter'  2) type Identifiant : 0750141W  3) Click the button 'Rechercher'  .... and you'l get the error!!!
>>

It's because your app is trying to access this URL :

http://www.gestschool.com/datasets?method=rows&dataset=Ecoles&rne=%270750141W%27

and return is a generic IIS 404 error message  (try it with a browser yourself to see it)

You're not using EWB web server in this case but IIS.

If you wish to host app from IIS and data from EWBWS then EWBWS needs to be on some other port and your URL needs to reference that port (i.e. if EWBWS is on port 88 then URL should be http://www.gestschool.com:88/datasets?method=rows&dataset=Ecoles&rne=%270750141W%27).

When doing it this way make sure you also enable cross origin resource sharing (CORS) .

Raul
Mon, Apr 13 2015 12:29 PMPermanent Link

TactiSoft

Raul wrote:

<<TactiSoft wrote:
 Try with 1) click button  'Se connecter'  2) type Identifiant : 0750141W  3) Click the button 'Rechercher'  .... and you'l get the error!!!
>>

It's because your app is trying to access this URL :

http://www.gestschool.com/datasets?method=rows&dataset=Ecoles&rne=%270750141W%27

and return is a generic IIS 404 error message  (try it with a browser yourself to see it)

You're not using EWB web server in this case but IIS.

If you wish to host app from IIS and data from EWBWS then EWBWS needs to be on some other port and your URL needs to reference that port (i.e. if EWBWS is on port 88 then URL should be http://www.gestschool.com:88/datasets?method=rows&dataset=Ecoles&rne=%270750141W%27).

When doing it this way make sure you also enable cross origin resource sharing (CORS) .

Raul

Thank you Raul for taking time to give an explanation...

Unfortunately, it's far from being enough for a simple user of Elevate WEB Builder as me (i think we are numberous)...
I undertstand words but can't figure out how to proceed. I use DataSnap with no special problem.... I'm an old Delphi programmer in deskstop applications.

First question: why can't i start an extern Web Server from the IDE? I'm on a Windows7 Pro PC: should i install IIS and configure something in it (and in the firewall) to open a special port (say 8081?) (see picture please)

Second question: Before opening DataSet, how should i compose the correct URL (http//mydomain.com:<myport>/datasets... ?

Suggestion: Maybe one or three pictures?



Attachments: EWB.gif
Mon, Apr 13 2015 12:57 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

<< Unfortunately, it's far from being enough for a simple user of Elevate
WEB Builder as me (i think we are numberous)...
I undertstand words but can't figure out how to proceed. I use DataSnap with
no special problem.... I'm an old Delphi programmer in deskstop
applications. >>

DataSnap applications don't run in a browser, and therefore, aren't subject
to the browser's cross-origin security constraints.  You really can't
compare the two.

<< First question: why can't i start an extern Web Server from the IDE? >>

Because it's a separate process that most likely isn't even running on the
same machine.

<< I'm on a Windows7 Pro PC: should i install IIS and configure something in
it (and in the firewall) to open a special port (say 8081?) (see picture
please) >>

Unless you specifically need IIS for something in particular, you can use
the EWB Web Server for serving up everything.  You just have to make sure to
set your Content Folder on the web server to the correct location that
contains your EWB application (HTML, JS, etc.).  You can find the Content
Folder setting on the Content tab of the server configuration dialog.

Then, it's just a matter of making sure that you load the application using
whatever port you've got the EWB Web Server listening on.  So, if you're
using 8080 for the EWB Web Server, then you're application load URL is:

http://www.mysite.com:8080/myapp.html

<< Second question: Before opening DataSet, how should i compose the correct
URL (http//mydomain.com:<myport>/datasets... ?  >>

You don't need to do anything with the dataset URLs if you're serving them
up from the same web server.  Just leave them as their defaults.

Tim Young
Elevate Software
www.elevatesoft.com
Sat, Apr 18 2015 6:17 AMPermanent Link

TactiSoft

"Tim Young [Elevate Software]" wrote:

<< Unfortunately, it's far from being enough for a simple user of Elevate
WEB Builder as me (i think we are numberous)...
I undertstand words but can't figure out how to proceed. I use DataSnap with
no special problem.... I'm an old Delphi programmer in deskstop
applications. >>

DataSnap applications don't run in a browser, and therefore, aren't subject
to the browser's cross-origin security constraints.  You really can't
compare the two.

<< First question: why can't i start an extern Web Server from the IDE? >>

Because it's a separate process that most likely isn't even running on the
same machine.

<< I'm on a Windows7 Pro PC: should i install IIS and configure something in
it (and in the firewall) to open a special port (say 8081?) (see picture
please) >>

Unless you specifically need IIS for something in particular, you can use
the EWB Web Server for serving up everything.  You just have to make sure to
set your Content Folder on the web server to the correct location that
contains your EWB application (HTML, JS, etc.).  You can find the Content
Folder setting on the Content tab of the server configuration dialog.

Then, it's just a matter of making sure that you load the application using
whatever port you've got the EWB Web Server listening on.  So, if you're
using 8080 for the EWB Web Server, then you're application load URL is:

http://www.mysite.com:8080/myapp.html

<< Second question: Before opening DataSet, how should i compose the correct
URL (http//mydomain.com:<myport>/datasets... ?  >>

You don't need to do anything with the dataset URLs if you're serving them
up from the same web server.  Just leave them as their defaults.

Tim Young
Elevate Software
www.elevatesoft.com

//*********************

Bonjour TIM,

// En français

Merci beaucoup pour tes explications qui m'ont permis de mieux comprendre EWB!  
Tu n'as peut-être pas suffisamment de temps à consacrer à la pédagogie pour que ton logiciel devienne un must dans la communauté des développer Delphi....
Vivement EWB version 2!
Didier

// Now in english

Hi Tim,

Thanks a lot for your explanations  which guided me to a better understanding of EWB.
May be you can not spend more time for pedagogy which make your software become a must among Delphi communauty.
Waiting for EWB 2!
Didier
Sat, Apr 18 2015 11:41 PMPermanent Link

Bruno Larochelle

TactiSoft wrote

Suggestion: Maybe one or three pictures?


>>

bonjour Didier

you asked for 1 or 3 pictures.. I've attached 3 slides of a project that i'm starting to work on. maybe it helps a bit, maybe not, but I come from a similar background.. lots of experience with Delphi.. but fairly thin on the world of the web

my diagram shows an existing system called 'r2d2', which is used by teachers/substitutes when they call in sick/replace. The back end is DBISAM (elevatesoftware), the middle-ware is Asta (astatech) and the client is Delphi. Those components are in dark gray on the image.

my goal is to first provide a web-portal into the existing system, using EWB. I use an MS-IIS server for serving HTML, and I do this through an httpS connection (secure). For the data, I use the 'out-of-the-box' EWB server, and I use the freely available 'sTunnel' tool to provide a secure connection. The EWB server in turn connects to the existing DBISAM server, and that is where authentication is done as well.

eventually, the plan is to get rid of the legacy system, leaving only the new EWB-built part

anyway.. my path so far has included some learning, but it is not all that hard, and there are lots of experts (I'm not one of them) on this forum that are always there to help

this is of course but one way to get the plumbing working.. there are many other ways and many variants from what I can tell, depending on what you use on the back end mostly (database, web server, data server). for example, although I use an IIS server for the HTML and an EWB server for the data, you can use the EWB server for both

I don't know how 'secure' my proposed system is yet, that is something I continue to study, because it is a requirement

my experience so far with both v1 and v2 of EWB is most promising, and to be truthful, addictive!

bonne chance!
Logiciels Bitwise Software
Edmonton, AB, Canada



Attachments: r2d2ajax.pdf
Mon, Apr 20 2015 4:43 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com


<< Thanks a lot for your explanations  which guided me to a better
understanding of EWB. May be you can not spend more time for pedagogy which
make your software become a must among Delphi communauty. >>

After EWB 2 is out, I'll be doing more videos and tutorials, and that should
help.  The topics that I'm looking to address are:

- Datasets and custom JSON handling
- Date/time localization with datasets
- Creating new control interfaces, both by replacing the standard interfaces
and by creating new classes

Tim Young
Elevate Software
www.elevatesoft.com
Image