You are not logged in.
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
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