JSON-RPC Tester

This page lets you play around with jsolait's jsonrpc module You can use it to call any function of any jsonrpc service. All you need to do is to type in the URL of the service into the first textbox. Enter the names of the methods the service exposes into the next textbox. If you want jsonrpc to use introspection(service needs to support it) to retrieve method names then just leave the methods textbox empty. Type in the method call expression into the last textbox in the code. Once you hit 'run' the code will be evaluated. The result of this evaluation will be put out into the txResult text box. If the evaluation caused an exception (Fault or Error) the exception will be put out.

Please keep in mind that when using mozilla due to security restrictions only calls to the same server the page is hosted on can be made. The same may apply to IE (check the security settings of IE).

try preset (echo) | try preset (tryArgs2String) | try preset (tryArgs2Array)
var serviceURL = "";

var methods = [];

try{
    var service = new jsonrpc.ServiceProxy(serviceURL, methods);
    txRsult.value = service.;
}catch(e){
    printTrace(e);
} 


txResult:

services at jsolait.net

There is a service with a few methods running on jsolait.net.
The service is located at: http://jsolait.net/services/test.jsonrpc
The following methods are available:
echo(msg) returns the value of the parameter msg try it
args2String(args*) returns a string containing the values of the parameters passed. try it
args2Array(args*) returns an array containing the values of the parameters passed. try it

Hit "try it" to set up the tester with these methods.