in reply to RPC::XML error
#!/usr/bin/perl use strict; use warnings; use Frontier::Daemon; my $d = Frontier::Daemon->new( methods => { sum => \&sum }, LocalAddr => '127.0.0.1', LocalPort => 1080, ); sub sum { my @args = (9, 9); print "The numbers to be added are: @args\n"; return $args[0] + $args[1], "\n"; }
Update: I used WebService::Advogato by jaldhar to make a simple sum, product, and square client:
#!/usr/bin/perl #sum, product, square use strict; use warnings; use Data::Dumper::Concise; use WebService::Advogato; my $client = new WebService::Advogato(); my $int_x = '91'; my $int_y = '23'; warn Dumper($client->sumprod($int_x, $int_y)); warn Dumper($client->square($int_x));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: RPC::XML error
by ikegami (Patriarch) on Mar 25, 2010 at 07:02 UTC | |
by Aishu (Initiate) on Mar 25, 2010 at 07:16 UTC | |
by ikegami (Patriarch) on Mar 25, 2010 at 07:19 UTC | |
by ikegami (Patriarch) on Mar 25, 2010 at 07:24 UTC | |
by Aishu (Initiate) on Mar 25, 2010 at 07:38 UTC | |
by Aishu (Initiate) on Mar 25, 2010 at 09:48 UTC | |
by ikegami (Patriarch) on Mar 25, 2010 at 18:19 UTC | |
|
Re^2: RPC::XML error
by Aishu (Initiate) on Mar 25, 2010 at 06:54 UTC |