in reply to XML-RPC API layout
Does anybody feel there are any large oversights or omissions?
I might replace the export_procedures sub with something more declarative. Also, it would be nice to *not* have to use base 'XMLMethod';. Something like:
package MyPackage; use strict; use warnings 'all'; # This would import rpc_method into the current namespace: use XMLMethod 'rpc_method'; # Declare a method as rpc-able: rpc_method( 'math.sum', \&API::Math::sum, [qw/ int int int /] ); # Or maybe: rpc_method name => 'math.sum', method => \&API::Math::sum, signature => [qw/ @int /]; rpc_method name => 'math.avg', method => \&API::Math::avg, signature => [qw/ @int /]; rpc_method name => 'string.join', method => \&join, signature => [qw/ @str /];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: XML-RPC API layout
by kalium (Sexton) on Jul 21, 2009 at 18:00 UTC |