EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Hosting Rest services with TElHTTP(S)Server

Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.
Posted: 12/04/2015 06:18:04
by ingbabic  (Standard support level)
Joined: 09/27/2011
Posts: 114

Is it possible to host rest services in TElHTTPServer component? Microsoft has very ease OWin hosting of rest services, but unfortunately it has bugs. I wonder if it is possible to do it with SBB components?
Posted: 12/04/2015 07:11:36
by Eugene Mayevski (EldoS Corp.)

Could you please elaborate on what exactly is meant by "hosting REST services"? In general you can, of course, use TElHTTPSServer to handle REST requests. Still this component is quite low-level. We have an idea in our wishlist for the rest service: https://www.eldos.com/sbb/wishlist.php?vox_idea_id=697 . You are welcome to vote for it. Also I welcome you to the idea's forum thread ( https://www.eldos.com/forum/read.php?FID=7&TID=6231 ) where we can discuss, what functionality such server should have. I took a look at Owin and while we don't have a similar interface, we will consider it when creating a REST service. Maybe we will even implement this particular interface as well.

Sincerely yours
Eugene Mayevski
Posted: 12/04/2015 09:19:17
by ingbabic  (Standard support level)
Joined: 09/27/2011
Posts: 114

Hi Eugene
I want to be able to create one application (may it be windows forms, or windows service, or console, doesn't matter) and while it works it actually behaves as small application server (let's say small IIS). In Microsoft Owin I do just following:
_server = WebApp.Start<Startup>(url: http://localhost:2504);

Then I implement Controller as System.Web.Http.ApiController and there I implement my GET, PUT, POST, DELETE, etc handlers as methods. After that my small rest server is fully ready for using. I can use it by specifying address, for example

would issue GET method in CertificatesController on my rest server. This method can return virtually anything (any type) and I get it on client side in request's responese
And as addition to this would this be possible also with SSL (to use https).
Posted: 12/04/2015 09:23:02
by Vsevolod Ievgiienko (EldoS Corp.)


You can implement what you described above using TElHTTPServer. Please check our sample that is located inside \EldoS\SecureBlackbox.NET\Samples\C#\HTTPBlackbox\Desktop\Server\HTTPServer folder after SecureBlackbox installation.
Posted: 12/04/2015 09:45:43
by Eugene Mayevski (EldoS Corp.)

Wonderful, thank you very much for the detailed explanation of your needs.

Sincerely yours
Eugene Mayevski
Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages



Topic viewed 2094 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!