Perl SOAP Quickstart Guide
Examples of how to use ListManager's functions with Perl are available in your ListManager's soap directory:
http://yourlistmanagerurl/soap
These instructions show how to use a Perl toolkit, SOAP::Lite, with ListManager.
1. Download SOAP::Lite:
2. Install SOAP::Lite by running:
perl -MCPAN -e 'install SOAP::Lite'
3. Define a SOAP::Lite function to handle basic authentication. See the SOAP::Lite documentation for more information.
The following is the minimal client script for Perl:
----PERL----
use SOAP::Lite ;
my $USER = 'admin';
my $PASS = 'lyris';
my $WSDL = 'http://YOURSERVERNAME/soap/wsdl';
my $SOAP = SOAP::Lite -> service($WSDL);
my $ApiVersion = $SOAP->ApiVersion();
if ($ApiVersion ne '1.0 Beta') {
die "Incompatible API version '$ApiVersion' detected!\n"
}
#define Authentication
sub SOAP::Transport::HTTP::Client::get_basic_credentials {
return $USER => $PASS;
}
![]() ![]() |