Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Create a simple http server and web service for Android (and possibly iOS)?


This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 2 - Last Post: Aug 5, 2016 11:32 AM Last Post By: Brian Wheatley
Brian Wheatley

Posts: 60
Registered: 2/5/01
Create a simple http server and web service for Android (and possibly iOS)?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 12, 2016 5:35 PM
Hello,

I wasn't quite sure if this was the appropriate forum or if FireMonkey was, but this seems the most appropriate.

My company is developing an application that we wish to be able to deploy to Windows, Android, and maybe eventually iOS tablets. It is for our service technicians that work in the field and need to be able to generate reports and upload them to corporate when they return.

Most of our developers are HTML, CSS, JavaScript programmers at this point so the plan is to develop the UI as HTML, CSS, and JavaScript with a Delphi "back end" that will handle the low level details. The main form currently has just a TWebBrowser and it was very easy to deploy this and view some sample html pages with it on an Android device.

Things like the SQLite database, synchronizing data with our corporate offices, and serial or TCP/IP communications with our equipment and so on would be handled in Delphi. The "web page" would communicate with it through a simple http server and REST service (possibly implemented as OData).

The tools to do this are readily available for the Windows (and Mac OS X platforms).

If I understand correctly the Indy components are built into Delphi now and that they are cross platform. Does that include "server" components like an http server or even a basic TCP Listener with which one could be built?

Are there any sample projects for a simple http server available?
Dan Barclay

Posts: 889
Registered: 11/9/03
Re: Create a simple http server and web service for Android (and possibly iOS)?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 14, 2016 2:25 PM   in response to: Brian Wheatley in response to: Brian Wheatley
Brian Wheatley wrote:
Hello,

I wasn't quite sure if this was the appropriate forum or if FireMonkey was, but this seems the most appropriate.

My company is developing an application that we wish to be able to deploy to Windows, Android, and maybe eventually iOS tablets. It is for our service technicians that work in the field and need to be able to generate reports and upload them to corporate when they return.

Most of our developers are HTML, CSS, JavaScript programmers at this point so the plan is to develop the UI as HTML, CSS, and JavaScript with a Delphi "back end" that will handle the low level details. The main form currently has just a TWebBrowser and it was very easy to deploy this and view some sample html pages with it on an Android device.

Things like the SQLite database, synchronizing data with our corporate offices, and serial or TCP/IP communications with our equipment and so on would be handled in Delphi. The "web page" would communicate with it through a simple http server and REST service (possibly implemented as OData).

The tools to do this are readily available for the Windows (and Mac OS X platforms).

If I understand correctly the Indy components are built into Delphi now and that they are cross platform. Does that include "server" components like an http server or even a basic TCP Listener with which one could be built?

Are there any sample projects for a simple http server available?

You may want to explore Intraweb. I think it may be a straightforward solution to your needs. A basic version is included with Delphi. You may want to explore that a little, and download their sample apps.

There are also a number of Indy samples available. If you search online you may find a match to your needs. Search "indy http server" as an example. This link will be in your list from that: http://www.atozed.com/indy/demos/10/index.en.aspx

By the way, Intraweb is a heavy user of Indy.

Dan

Edited by: Dan Barclay on Jul 14, 2016 4:26 PM
Brian Wheatley

Posts: 60
Registered: 2/5/01
Re: Create a simple http server and web service for Android (and possibly iOS)?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 5, 2016 11:32 AM   in response to: Brian Wheatley in response to: Brian Wheatley
Thanks!
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02