#1 2020-03-18 14:58:30

svuk
Member
Registered: 2011-09-28
Posts: 3

Is possible to replace '.' in method call to non-Delphi REST server?

Is possible to replace '.' in method call (POST) to non-Delphi REST server?

If I define REST interface like:

  IRESTTEST = interface(IInvokable)
    ['{.....}']
    function JobInfo(JobInfo: TJobInfo): Integer;
  end;

Delphi method call (URI) goes out as: http://<adr>/root/RESTTEST.JobInfo

Is it possible to replace this to: http://<adr>/root/RESTTEST/JobInfo   ??

Interface is registered with TSQLHttpClient.

...or where is the place for preparing output uri?

There is an very known example ... Calculator.Add ... I want to send:  'Calculator/Add'


Sinisa V.

Last edited by svuk (2020-03-18 15:14:14)

Offline

#2 2020-03-18 15:22:50

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

Re: Is possible to replace '.' in method call to non-Delphi REST server?

Both works.
It is documented as such.
https://synopse.info/files/html/Synopse … #TITLE_455

Please check the doc first!

Offline

#3 2020-03-24 20:17:53

svuk
Member
Registered: 2011-09-28
Posts: 3

Re: Is possible to replace '.' in method call to non-Delphi REST server?

Thanks for a hint.

In a meanwhile, found another way ... using event OnEncryptBody where uri can be edited too..

Offline

Board footer

Powered by FluxBB