lemonldap-ng/lemonldap-ng-portal/example/soapconfigtest.pl

26 lines
664 B
Perl
Raw Normal View History

#!/usr/bin/perl
#==============================================================================
#
# Simple script to test LemonLDAP::NG SOAP configuration service
#
#==============================================================================
use strict;
use SOAP::Lite;
use Data::Dumper;
# Service
my $soap =
2017-01-30 17:22:39 +01:00
SOAP::Lite->new( proxy => 'http://auth.example.com/config' );
$soap->default_ns('urn:Lemonldap/NG/Common/CGI/SOAPService');
# Call SOAP methods
2011-01-25 17:41:31 +01:00
my $lastCfg = $soap->call('lastCfg')->result();
print "Last configuration:\n" . Dumper $lastCfg;
2011-01-25 17:41:31 +01:00
my $config = $soap->call('getConfig')->result();
print "Configuration data:\n" . Dumper $config;
exit;