#1 2015-07-01 03:23:19

bigheart
Member
Registered: 2014-08-01
Posts: 45

sicClientDriven mode not allowed with TServiceCustomAnswer result

Hello!

I am using interface based service with mORMot.

And when RestServer.ServiceRegister(...,sicClientDriven ),  the error message is displayed as below:

"TServiceFactoryServer.Create: IMyService.GetMyService sicClientDriven mode not allowed with TServiceCustomAnswer result"

Of course, MyService's interface function is declared like

 

function GetMyService: TServiceCustomAnswer;

Is it impossible to use sicClientDriven mode with return value's TServiceCustomAnswer?

Last edited by bigheart (2015-07-01 05:45:46)

Offline

#2 2015-07-01 06:22:32

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

Re: sicClientDriven mode not allowed with TServiceCustomAnswer result

Yes, both features are not compatible.

The sicClientDriven mode expects the client id to be sent back with the server response, in a "ID":... sub-field.
Since TServiceCustomAnswer override the whole response content, the "ID":... field is missing...

We may allow get rid of this restriction in the future.
You could create a feature request ticket, with a link to this forum thread, if you want.

Offline

Board footer

Powered by FluxBB