[Catalyst-dev] Catalyst::Plugin::Server::XMLRPC

Alex Pavlovic alex at taskforce-1.com
Sun Jul 16 13:03:10 CEST 2006


I guess I found answer to my own question,

__PACKAGE__->config(
	xmlrpc => {
		path => 'xmlrpc',
		prefix => 'xmlrpc'
	}
);

this way user can specifiy 'session.auth' instead of 'xmlrpc.session.auth'
if I have sub auth in App::Controller::XMLRPC::Session 
This solves the problem with multiple controllers nicely.

:)

On Friday 14 July 2006 11:14, Alex Pavlovic wrote:
> Hi,
>
> First of all great work on the new server framework. I hope other servers
> spring into existence soon. I actually had a small suggestion for a
> Catalyst XMLRPC Server Plugin. I noticed that it splits the xmlrpc method
> names to find the full path to the controller.
>
> Let's assume my entry point was http://somehost.com/xmlrpc and I had
> method 'session.auth'. Now let's further assume I had multiple controllers
> under my catalyst app such as:
>
> App::Controller::XMLRPC::Session
> App::Controller::XMLRPC::Something
> App::Controller::SOAP::Session
>
> The call to 'session.auth' for example through xmlrpc entry point would
> have to be done via http://somehost.com/xmlrpc using method
> 'xmlrpc.session.auth', unless I go with XMLRPCRegex.
>
> But you can see that 'xmlrpc.' in 'xmlrpc.session.auth' is clearly
> reduandant and not really needed. I however still wish to preserve a nice
> layout I have under controller space.
>
> The suggestion, which I think is more inline with catalyst and maps better
> is to first split the xmlrpc method name as it is done right now, but tack
> this onto the entry point.
>
> So for example if entry point was http://somehost.com/xmlrpc and
> method 'session.auth' the catalyst would form a path for dispatch such as
> http://somehost.com/xmlrpc/session/auth. XMLRPCRegex could still be used if
> user wishes to have entry point elsewhere and map onto controllers that do
> not follow logical paths.
>
> Please let me know what you think. I would be glad to hear more. Again
> thank you for your time and keep up the good work.
>
>
>
>
>
>
>
>
> _______________________________________________
> Catalyst-dev mailing list
> Catalyst-dev at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst-dev



More information about the Catalyst-dev mailing list