Using JSON RPC in the service