I'm messing with some XML-RPC servers, and needed a quick client to test them. This one takes command line options to set the server, method and arguments. Useful for quickly checking your xml-rpc server implimentation.
#!/usr/bin/perl -w use strict; use Frontier::Client; use Getopt::Long; my $XMLRPCSERVER = ""; my $METHOD = ""; my $ARGUMENT = ""; my $client = ""; my $response = ""; my $output = ""; GetOptions( "server=s" => \$XMLRPCSERVER, "method=s" => \$METHOD, "arg=s" => \$ARGUMENT); $client = Frontier::Client->new( url => $XMLRPCSERVER, use_objects => 0, debug => 1); $response = $client -> call ($METHOD, $ARGUMENT); print "\n\n $XMLRPCSERVER replied: \n\n $response \n\n"; __END__ =head1 NAME testclient.pl =head1 SYNOPSIS A command line perl tool to test xml-rpc servers =head1 DESCRIPTION weblogscom.pl uses command line options, so invoke it like this... perl weblogscom.pl --server=THE SERVER URL HERE --method=METHOD.NAME.H +ERE --arg=ARGUMENT.HERE =head1 AUTHOR Ben Hammersley, ben@benhammersley.com =head1 BUGS probably =head1 SEE ALSO http://www.xmlrpc.com/ http://www.benhammersley.com/ =head1 COPYRIGHT Copyright 2002, Ben Hammersley, All Rights Reserved. This program is free software. You may copy or redistribute it however + you like. I'd prefer it if you kept my name on it, though.

In reply to xml-rpc server tester by benhammersley

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.