#1 2012-04-15 15:14:44

DaiYi
Member
Registered: 2012-04-13
Posts: 1

Can SQLite3HttpServer serve a directory like HttpApiServer sample?

I want use SQLite3HttpServer as a ajax server side,and serve a directory like HttpApiServer sample so that I can separate html.How can I do this?

Offline

#2 2012-04-16 07:14:08

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,655
Website

Re: Can SQLite3HttpServer serve a directory like HttpApiServer sample?

Read the documentation about Service implementation in the framework.
See http://blog.synopse.info/post/2010/07/1 … phi-7-2010 for a preliminary documentation.

I think the easiest is to add a method-based service (not an interface based service), which will return HTML content from a given method.

I've added TSQLRestServer.ServiceMethodByPassAuthentication method in order to allow by-pass of the RESTful authentication scheme for some methods (can be used e.g. to server some HTML content for a non SOA client).
It will enable you to serve some HTML content to a web client, AND use secure authentication for the same server instance.
See http://synopse.info/fossil/info/5b4e96bfbf

Offline

Board footer

Powered by FluxBB