You are not logged in.
Pages: 1
Hi
My project is based on sample 31, LongWorkClient and LongWorkServer.
I use the client to trigger scripts on the server.
CallBack allows the server to notify the client that script execution is complete.
When I use my service several times by pressing a button, it's all right.
However when I use the callback to trigger the next “MyService.MyFunction” I get an exception in the Client project with “returned status 'Not Found' (404 - Network problem or request timeout)”.
During the second call the server is well requested but there is no return.
I can’t even do a ServerTimeStampSynchronize after the first call.
Any ideas ?
Thx
Thank you for your quick answer.
Hi,
I modified the sample project 31 (LongWorkServer and LongWorkClient) to change the callback procedures into functions (WorkFinished and WorkFailed).
I added Sleep(5000) into these functions to simulate a long work into the callback functions.
I have this error message :
"TInterfacedObjectFakeServer.FakeCall(ILongWorkCallback.WorkFinished) failed: 'TWebSocketServerRest.Callback(1) received status=404 from root/LongWorkCallback.WorkFinished/1''
How could I set the timeout ?
Thx
Ok, thank you.
Hi,
I would like to transmit a TSQLRawBlob property between a mORMmot server and an Android client.
On the one hand I use the TSQLRawBlob defined in the unit mORMot.pas on the other hand I use the TSQLRawBlob defined in the unit SynCrossPlatformREST.pas.
To set the RTTI property in the server I do :
lPropInfo := ClassFieldPropWithParents(aDest.ClassType, aPropertyName);
if Assigned(lPropInfo) then
begin
lPropInfo^.SetFromVariant(aDest, aValue);
end;
How can I do the same in my Android application without the ClassFieldPropWithParents and SetFromVariant methods ?
Thx
Pages: 1