JSON Server Example 1


This example demonstrates a JSON-RPC 2.0 call to a simple JSON service.

The service is implemented in the HelloService class in the example1.php which also represents the contract. Arguments are passed by order (as an array).

jQuery is used to call the service but you can use whatever you like as long as the request is formatted according to any of the supported protocols.

Metadata of the service can be found as a Service Metadata Description or a JSON-WSP Description.

Hello Service