Aishu has asked for the wisdom of the Perl Monks concerning the following question:
I get the following error as result.#!/usr/bin/perl # Testing sum() use strict; use warnings; use RPC::XML::Client; sub sum { my ($args1,$args2) = @_; print "inside sum"; return $args1 + $args2; } my @args = (9,9); print "The numbers to be added are :@args\n"; my $client = new RPC::XML::Client 'http://lovalhost:80'; my $req = RPC::XML::request->new('sum', @args); my $res = $client->send_request($req); print "The result is : $res";
As i am newbie in perl i am not able to figure out the reason for the error.Please help me out in rectifying this one. The main aim is to integrate perl and JAVA.That is the reason i am in need of RPC::XML.... Thanks in advance, AishuThe numbers to be added are :9 9 The result is : syntax error at line 1, column 54, byte 54: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> =====================================================^ <HTML> at C:/Perl/site/lib/RPC/XML/Client.pm line 394
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: RPC::XML error
by ikegami (Patriarch) on Mar 25, 2010 at 05:27 UTC | |
by Aishu (Initiate) on Mar 25, 2010 at 06:20 UTC | |
by ikegami (Patriarch) on Mar 25, 2010 at 06:30 UTC | |
by Aishu (Initiate) on Mar 25, 2010 at 06:44 UTC | |
by Anonymous Monk on Mar 25, 2010 at 06:56 UTC | |
|
Re: RPC::XML error
by Khen1950fx (Canon) on Mar 25, 2010 at 06:46 UTC | |
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: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 07:19 UTC | |
by Aishu (Initiate) on Mar 25, 2010 at 06:54 UTC |