[Catalyst] Help with XMLRPC
Jon
jon+catalyst at youramigo.com
Sat Feb 17 02:38:55 GMT 2007
On Fri, 2007-02-16 at 21:57 -0300, Patricio A. Bruna wrote:
> I found another way.
> >From the XMLRPC "client" i had to call the function like: api.add
>
> Any good read on how to make a little client to see the response from the XMLRPC server and...
> how can i make the response be a XML data chunk?
>
Here's a client - they don't get much simpler:
use XMLRPC::Lite;
my $endpoint = "http://localhost:3000/api/";
my $result = XMLRPC::Lite->proxy($endpoint)->add(@args)->result;
The XMLRPC::Lite docs will tell you how to pull out the raw XML.
--
Jon
> ----- Mensaje Original -----
> De: "Jon" <jon+catalyst at youramigo.com>
> Para: "The elegant MVC web framework" <catalyst at lists.rawmode.org>
> Enviados: viernes 16 de febrero de 2007 18H53 (GMT-0400) America/Santiago
> Asunto: Re: [Catalyst] Help with XMLRPC
>
> I had to declare all my subs like this:
>
> sub add : XMLRPC('add') {
> ...
> }
>
> Without explicitly appending ('add'), it wouldn't work... which is not
> what the pod says.
>
> HTH.
>
More information about the Catalyst
mailing list