Files in this folder:
- json.php - decode/encode PHP variable from/to JSON
- json-start.php - PHP header file to be included in web service.
- json-end.php - PHP footer file to be included in web service.
- calc-web-service.php - sample web service implementing two web methods : add and sub.
Call them from Sciter as:
load("jsonrpc.tis");
var rpc = new JsonRPC( "http://www.terrainformatica.com/tests/calc-web-service.php", indicator );
var v = rpc.send("add", p0, p1);
var v = rpc.send("sub", p0, p1);