removed unused asset
[openemr.git] / gacl / soap / clients / perl_client.pl
blob2334133f20eab96fb37102dd81e4681c929d5919
1 #!/usr/bin/perl
4 # SOAP Lite needs to be installed for this to work correctly.
6 use SOAP::Lite;
9 # EDIT THE BELOW URL TO MATCH YOUR SERVER.
11 sub soap_init {
12 my $soap = new SOAP::Lite
13 uri => 'http://localhost/phpgacl/soap/server.php',
14 proxy => 'http://localhost/phpgacl/soap/server.php'
15 or die "Failed SOAP connection: $! \n";
18 $soap = soap_init();
20 sub acl_check {
21 my ($aco_section_value, $aco_value, $aro_section_value, $aro_value, $axo_section_value, $axo_value, $root_aro_group_id, $root_axo_group_id) = @_;
23 return $soap->call('acl_check',$aco_section_value, $aco_value, $aro_section_value, $aro_value, $axo_section_value,$axo_value, $root_aro_group_id, $root_axo_group_id)->result
26 if ( acl_check('system','login','users','john_doe') ) {
27 print "John Doe has been granted access to login!<br>\n";
28 } else {
29 print "John Doe has been denied access to login!<br>\n";