#1 2016-07-27 02:34:27

bagusprasojo
Member
Registered: 2016-07-26
Posts: 18

How to execute interface based Service using browser ?

Hi ....

I have interface based service in server. The code :

IRemoteSQL = interface(IInvokable)
  ['{0E34DC10-0A32-4A19-97E4-8012E06D32AA}']
    function ExecuteSQL(const aSQL: RawUTF8; aExpectResults, aExpanded: Boolean): RawJSON;
  end;

How to execute  function ExecuteSQL using browser ?

Last edited by bagusprasojo (2016-07-27 02:37:01)

Offline

#2 2016-07-27 09:33:52

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

Re: How to execute interface based Service using browser ?

The URI is available in the docs.
See http://synopse.info/files/html/Synopse% … #TITLE_437

But I would NEVER expose such a query to browsers.
It would be VERY unsafe to allow such remote SQL execution.
Use a persistence service instead, with safe methods to retrieve or write data.

Offline

#3 2016-07-28 00:54:59

bagusprasojo
Member
Registered: 2016-07-26
Posts: 18

Re: How to execute interface based Service using browser ?

Thank you AB,

I Agree with you. I would NEVER expose such a query to browsers. I just want to test execute my method on browser.

Offline

Board footer

Powered by FluxBB