You are not logged in.
I plan to implement server service that accept new object as parameter and process in server memory.
The formation is...
-Client call server function that accept some object as parameter [AFunction(obj: TSampleRecord)]
-Server decode json object to TSampleRecord
-Server process something with object(TSampleRecord) then save object to database and return result
Could you show some example code to guidance me?
thanks
Offline
With the default SOA implementation, you may use ObjectToJSON() and JSONToObject() functions, and send your object content as RawUTF8 to the server.
The upcoming interface-based service implementation will let you do this directly in the function parameter.
Offline
See also http://synopse.info/forum/viewtopic.php?pid=3468#p3468 about Server side implementation methods signature change.
Offline
Any ideas whena demo using json will be available.
I need to impliment a client/server application with sqlite.
would json act as a passthrough from the application to the server.
Tom
Offline
Also.
I am also writing this application for the android as well.
It uses json to get info from my server.
Could this also act as a json server for the android part of the program?
Tom
Offline
The JSON format is standard.
You can consume it with JavaScript, or any JSON parser without any problem.
So it will work without any problem with Android.
Offline