Archive of UserLand's first discussion group, started October 5, 1998.

Re: How to push Perl hash through XML RPC?

Author:Ken MacLeod
Posted:1/19/1999; 10:18:22 AM
Topic:Frontier on MacOS X Server
Msg #:2248 (In response to 2227)
Prev/Next:2247 / 2249

What you need to do is create a hash reference instead of a hash. Use

my $hash = { 'state1' => 18, 'state2' => 27, 'state3' => 4 };

my @args = ($hash);

While testing this I realized that Frontier::RPC wasn't updated for newer versions of XML::Parser (>2.16, I think). I will have a new version of Frontier::RPC available shortly.

In the new version of Frontier::RPC, Frontier::Client->new will take a `url' argument, instead of a 'host' and 'port'.

my $url = 'http://dolphin.calendar.com:8000/RPC2';

my $server = Frontier::Client->new(url => $url);

Also while testing, dolphin.calendar.com:8000 is not returning valid XML-RPC results, the in the reponse is not contained in a element.


There are responses to this message:


This page was archived on 6/13/2001; 4:47:23 PM.

© Copyright 1998-2001 UserLand Software, Inc.