# the same in SOAP lite (second call) #
use SOAP::Lite;
my $lite = SOAP::Lite->new()->on_action(sub { join '/', @_ } ) ->proxy('http://www.fullerdata.com/FortuneCookie/FortuneCookie.asmx');
$lite->call( SOAP::Data->name('GetSpecificCookie') ->attr({ 'xmlns', 'http://www.fullerdata.com/FortuneCookie/FortuneCookie.asmx' }), SOAP::Data->name('index')->value(23) );
die $soap->message() if ($soap->fault()); print $soap->result();
To install SOAP::WSDL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SOAP::WSDL
CPAN shell
perl -MCPAN -e shell install SOAP::WSDL
For more information on module installation, please visit the detailed CPAN module installation guide.