RPC::JSON::Shell - Interactive JSON-RPC Shell


RPC-JSON documentation  | view source Contained in the RPC-JSON distribution.

Index


NAME

Top

RPC::JSON::Shell - Interactive JSON-RPC Shell

SYNOPSIS

Top

    perl -MRPC::JSON -e "RPC::JSON::shell"

    Not connected> connect http://www.dev.simplymapped.com/services/geocode/json.smd
    GeocodeService > geocode "1600 Pennsylvania Ave Washington DC"
    $VAR1 = [
          {
            'administrativearea' => 'DC',
            'country' => 'US',
            'longitude' => '-77.037691',
            'subadministrativearea' => 'District of Columbia',
            'locality' => 'Washington',
            'latitude' => '38.898758',
            'thoroughfare' => '1600 Pennsylvania Ave NW',
            'postalcode' => 20004,
            'address' => '1600 Pennsylvania Ave NW, Washington, DC 20004, USA'
          }
    ];

DESCRIPTION

Top

This module is an interactive client to a JSON-RPC service. It is currently in its infancy and is likely to be very unstable. There are many bugs in this package.

Initiate a shell session

Display the help text.

Connect to the specified SMD URL

If connected, will disconnect from the existing service. This doesn't necessarily mean that it will disconnect the socket (it will if the socket is still open), because JSON-RPC does not require a dedicated connection.

Aliased to disconnected

List available methods

By entering <method> [parameters] the shell will query the Service and display results

AUTHORS

Top

Copyright 2006 J. Shirley <jshirley@gmail.com>

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. That means either (a) the GNU General Public License or (b) the Artistic License.


RPC-JSON documentation  | view source Contained in the RPC-JSON distribution.