Hi All,

I am new to XML::RPC. I wanted to consume few methods using xm RPC.

I have my Server at http://localhost:8900. I have a method "login" which takes "username,password category" as arguments.I did the following.

######### SNIP
use strict;
use warnings;
 require RPC::XML;
 require RPC::XML::Client;


my $cli = RPC::XML::Client->new('http://localhost:8900');
my $resp=$cli->send_request('system.login(\'test\', \'test\', \'test\')');
foreach(keys %$resp)
{
    print "$_ is $$resp{$_}\n";

}

######### SNIP

I get the following error

## ERROR
faultString is RPC::XML::string=SCALAR(0x1874d94)
faultCode is RPC::XML::i4=SCALAR(0x1ff11bc)

###

Hwo can i aceess method login wiht XML::RPC::CLient.

Can somebody help me please.

THanks,
Siva



--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to