<?php
require_once('lib/nusoap.php');
$client = new soapclient('http://your.hostname.here/lums/ws/portalinterface.php');
echo "<br><b>" . date('r') . "</b><br>\n";
$action = $_REQUEST['action'];
if ($action == 'create'){
echo "<br><b>CreateParent</b><br>\n";
$result = $client->call('CreateParent',
array('StudentUserName' => 'mathitis', 'ParentSurname' => 'ÊáëåõñÜò',
'ParentName' => 'Êþóôáò', 'ParentEmail' => 'hide@address.com',
'ParentPhone' => '+30 210 7323333', 'ParentUsername' => 'testparent001',
'ParentPassword' => 'test1234'));
print_r($result);
}
else if ($action == 'password'){
echo "<br><b>GetPasswordParent</b><br>\n";
$result = $client->call('GetPasswordParent',
array('ParentUsername' => 'testparent001'));
print_r($result);
}
else if ($action == 'update'){
echo "<br><b>UpdateObject</b><br>\n";
$result = $client->call('UpdateObject',
array('ObjectType' => 'parent', 'ObjectUsername' => 'testparent001',
'ObjectSurname' => 'ÊáëåõñÜò', 'ObjectName' => 'Êþóôáò',
'ObjectEmail' => 'hide@address.com', 'ObjectTelephone' => '+30 210 7324444'));
print_r($result);
}
else if ($action == 'delete'){
echo "<br><b>DeleteObject</b><br>\n";
$result = $client->call('DeleteObject',
array('ObjectType' => 'parent', 'ObjectUsername' => 'testparent001'));
print_r($result);
}
else{
echo "<br><b>Unknown Request</b><br>\n";
}
?>