App::CallDispatcher::HTTPSimple - synchronous rpc using simple HTTP protocol
use App; $context = App->context(); $call_dispatcher = $context->service("CallDispatcher"); # or ... $call_dispatcher = $context->call_dispatcher(); @returnvals = $call_dispatcher->call($service, $name, $method, $args);
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
* 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"]]);
* Author: Stephen Adkins <stephen.adkins@officevision.com> * License: This is free software. It is licensed under the same terms as Perl itself.
App::Context, App::Service
App::Context
App::Service
To install App::Context, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Context
CPAN shell
perl -MCPAN -e shell install App::Context
For more information on module installation, please visit the detailed CPAN module installation guide.