March 28th, 2002


xmlrpc interface?

I noticed while browsing around in the code that there is an xmlrpc interface available. Since I'd like to write a client that can determine a users (mine actually) communities whether they are friends or not, I thought this might be very useful so that I could get the full structure of getfriends back rather than just the flat interface.

I tried accessing it with:
my $cli = RPC::XML::Client->new('');
my $struct = RPC::XML::struct->new({ user => RPC::XML::string->new('wolfieboy'),
hpassword => RPC::XML::string->new(md5_hex('elided'))
my $req = RPC::XML::request->new('LJ.Protocol.getfriends', $struct);

but when I did so, I recieved:
Denied access to method (getfriends) in class (LJ::Protocol) at /usr/share/perl5/SOAP/ line 2113.

So, what am I doing wrong here? I've done very little xml-rpc programming, so I could easily be making a variety of errors.
Then again, it's possible that access to the xmlrpc interface is restricted but I think the former is more likely.
  • Current Music
    Red Red Groovy - The Fabric of Space