#1 2019-07-01 09:53:10

jaclas
Member
Registered: 2014-09-12
Posts: 215

Interface based service: ServiceContext and method parameters

Is possible to extract method input parameters from ServiceContext on service method call level?

I try ServiceContext.Request.Parameters and ServiceContext.Request.Call.InBody but I get binary or incomplete data.

Offline

#2 2019-07-01 14:08:53

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

Re: Interface based service: ServiceContext and method parameters

Call.InBody has been escaped in place so it is not valid JSON any more.

If you expect to have access to the input body, try https://synopse.info/files/html/Synopse … l#TITL_197

But a method-based service is perhaps the best option - and you can mix method-based services and interface-based services on the very same TSQLRestServer instance.

Offline

Board footer

Powered by FluxBB