Re: Re: [Catalyst] Catalyst and XMLRPC

2011-11-08 Thread Dmitry Latin
Hello, Bill!

> 
> I use RPC::XML directly.  I added a dispatcher and a HTTP::Body class for
> decoding the XMLRPC.  For the most part the same controllers handle the
> XMLRPC requests and the web requests (they look the same).
> 
After some thought I've came to following scheme:

In controller (suppose, MyApp::Controller::RPC::Root) create an action for page 
('/xmlrpc').
There we will get xmlrpc request from client and then serialize XML data (from 
$c->req->body) to HASH.
Next create a private actions for XMLRPC methods with the same name.
So for example
1. XMLRPC method get_data will correspond to 
MyApp::Controller::RPC::Root::get_data
2. XMLRPC method example.get_data will correspond to 
MyApp::Controller::RPC::Root::Example::get_data

Thus we will need to setup searching for corresponding methods and controllers 
and share data via stash.

So there is a working example: 
https://github.com/dim0xff/Catalyst-XMLRPC-Example
XMLRPC working via XML::RPC::Fast

Is it right way?

Thank you!

-- 
//wbr, Dmitry Latin

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Catalyst and XMLRPC

2011-11-08 Thread Bill Moseley
On Fri, Nov 4, 2011 at 6:29 PM, Dmitry L.  wrote:

> Hello!
>
> Does anybody use Catalyst as XMLRPC service?
>

I use RPC::XML directly.  I added a dispatcher and a HTTP::Body class for
decoding the XMLRPC.  For the most part the same controllers handle the
XMLRPC requests and the web requests (they look the same).



> Could you give me an advice which module to use or how I can build this
> app?
>

My advice would be avoid it if possible.  Build a nice simple RESTful
interface instead.  The problem is there are a large number of XMLRPC
client libraries out there in various states and often used as black-boxes
by customers.  Makes problem solving with customers a guessing game a times.


-- 
Bill Moseley
mose...@hank.org
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Catalyst and XMLRPC

2011-11-07 Thread Dmitry L.
Hi, Jose!

Clone::Fast fails on testing.
Here is a log http://pastebin.com/QPcbMEsi
I'm on Gentoo x86_64

I've tried to install via cpanm, but cpanm was trying to download
Clone-Fast-0.93, but there is only 0.92 on the CPAN server.

On 4 November 2011 17:30, Jose Luis Martinez <
jlmartinez-lists-catal...@capside.com> wrote:

>
> If Clone::Fast fails, please report back to me. I'm the maint for
> Catalyst::Plugin::Server, and wouldn't want to be depending on a very
> broken module.
>
>

-- 
//wbr, Dmitry L.
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Catalyst and XMLRPC

2011-11-05 Thread David Schmidt
I believe this is the way to go ...
http://search.cpan.org/~bphillips/Catalyst-Action-REST-0.93/lib/Catalyst/Controller/REST.pm

On 4 November 2011 14:30, Jose Luis Martinez
 wrote:
> El 04/11/2011 13:59, Dmitry L. escribió:
>>
>> Catalyst::Cookbook and found advice to use Catalyst::Plugin::XMLRPC, but
>> on Catalyst::Plugin::XMLRPC cpan page it is marked as deprecated.
>>
>> Could you give me an advice which module to use or how I can build this
>> app?
>
> Try out Catalyst::Plugin::Server.
>
> Watch out for one thing: it depends on Clone::Fast, and it looks like cpan
> and cpanm can't locate the dist.
>
> wget
> http://search.cpan.org/CPAN/authors/id/J/JJ/JJORE/Clone-Fast-0.92.tar.gz
>
> untar it, and install it first.
>
> If Clone::Fast fails, please report back to me. I'm the maint for
> Catalyst::Plugin::Server, and wouldn't want to be depending on a very broken
> module.
>
> Best Regards,
>
> Jose Luis Martinez
> jlmarti...@capside.com
>
> ___
> List: Catalyst@lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Catalyst and XMLRPC

2011-11-04 Thread Jose Luis Martinez

El 04/11/2011 13:59, Dmitry L. escribió:

Catalyst::Cookbook and found advice to use Catalyst::Plugin::XMLRPC, but
on Catalyst::Plugin::XMLRPC cpan page it is marked as deprecated.

Could you give me an advice which module to use or how I can build this app?


Try out Catalyst::Plugin::Server.

Watch out for one thing: it depends on Clone::Fast, and it looks like 
cpan and cpanm can't locate the dist.


wget 
http://search.cpan.org/CPAN/authors/id/J/JJ/JJORE/Clone-Fast-0.92.tar.gz


untar it, and install it first.

If Clone::Fast fails, please report back to me. I'm the maint for 
Catalyst::Plugin::Server, and wouldn't want to be depending on a very 
broken module.


Best Regards,

Jose Luis Martinez
jlmarti...@capside.com

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


[Catalyst] Catalyst and XMLRPC

2011-11-04 Thread Dmitry L.
Hello!

Does anybody use Catalyst as XMLRPC service?

I want add new controller to existing Catalyst app, which will serve the
XMLRPC requests.

I've looked at Catalyst::Cookbook and found advice to use
Catalyst::Plugin::XMLRPC, but on Catalyst::Plugin::XMLRPC cpan page it is
marked as deprecated.

Could you give me an advice which module to use or how I can build this app?

Thank you!

-- 
//wbr, Dmitry L.
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/