NAME

App::CallDispatcher::HTTPSimple - synchronous rpc using simple HTTP protocol

SYNOPSIS

use App;

$context = App->context();
$call_dispatcher = $context->service("CallDispatcher");  # or ...
$call_dispatcher = $context->call_dispatcher();

@returnvals = $call_dispatcher->call($service, $name, $method, $args);

DESCRIPTION

A CallDispatcher service facilitates synchronous remote procedure calls. The HTTPSimple does this by formatting a simple HTTP request using GET or POST and parsing the results using a serializer.

Class: App::CallDispatcher::HTTPSimple

A CallDispatcher service facilitates synchronous remote procedure calls. The HTTPSimple does this by formatting a simple HTTP request using GET or POST and parsing the results using a serializer.

* Throws: App::Exception::CallDispatcher
* Since:  0.01

Public Methods:

call()

* Signature: @returnvals = $call_dispatcher->call($service, $name, $method, $args);
* Param:     $service           string  [in]
* Param:     $name              string  [in]
* Param:     $method            string  [in]
* Param:     $args              ARRAY   [in]
* Return:    @returnvals        any
* Throws:    App::Exception::CallDispatcher
* Since:     0.01

Sample Usage: 

@returnvals = $call_dispatcher->call("Repository","db",
    "get_rows",["city",{city_cd=>"LAX"},["city_cd","state","country"]]);

ACKNOWLEDGEMENTS

* Author:  Stephen Adkins <spadkins@gmail.com>
* License: This is free software. It is licensed under the same terms as Perl itself.

SEE ALSO

App::Context, App::Service