NetSDS::App::JSRPC - JSON-RPC server framework
use 5.8.0; JServer->run(); 1; package JServer; use base 'NetSDS::App::JSRPC'; # This method is available via JSON-RPC sub sum { my ($self, $param) = @_; return $$param[0] + $$param[1]; } 1;
NetSDS::App::JSRPC module implements framework for common JSON-RPC service.
NetSDS::App::JSRPC
This implementation is based on NetSDS::App::FCGI module and expected to be executed as FastCGI or CGI service.
Both request and response should be of 'application/x-json-rpc' MIME type.
This is internal method that implements JSON-RPC call processing.
Paramters: method name, parameters.
Returns parameters from executed method as is.
Paramters: HTTP POST data as string
Returns: request method, parameters, id
Paramters:
Returns JSON encoded response message
Internal method implementing error response.
Returns JSON encoded error message
See samples/app_jsrpc.fcgi appliction.
samples/app_jsrpc.fcgi
Unknown yet
JSON
JSON::RPC2
* move error codes to constants
Michael Bochkaryov <misha@rattler.kiev.ua>
Copyright (C) 2008-2009 Michael Bochkaryov
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
To install NetSDS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm NetSDS
CPAN shell
perl -MCPAN -e shell install NetSDS
For more information on module installation, please visit the detailed CPAN module installation guide.