on 01-24-2014 01:21 AM
#!/usr/bin/perl
use warnings;
use strict;
use SOAP::Lite;
my $cucmip = "xxx.xxx.xxx";
my $axl_port = "8443";
my $user = "axl";
my $password = "axl";
my $axltoolkit = "AXLAPI.wsdl";
BEGIN {
sub SOAP::Transport::HTTP::Client::get_basic_credentials {
return ($user => $password)
};
}
my $cm = new SOAP::Lite
encodingStyle => '',
uri => "$axltoolkit",
proxy => "https://$cucmip:$axl_port/axl/" ;
#axl request
my $res = $cm->getUser(SOAP:ata->name("userid" => "chni"));
unless ($res->fault) {
print $res->paramsall();
}
else {
print join ', ',
$res->faultcode,
$res->faultstring;
}
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: