ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
dummy_client.php File Reference

Go to the source code of this file.

Functions

 showResult (&$client, $data, $message)

Variables

 exit
 $server = "http://www.ilias.de/lt4el/Services/SOAPAuth/dummy_server.php"
 $ext_uid = "testuser"
 $soap_pw = "testpw"
 $new_user = "new_user"]
 $client = new soap_client($server)
if($err=$client->getError()) $namespace = "http://testuri.org"
 $valid

Function Documentation

showResult ( $client,
  $data,
  $message 
)

Definition at line 63 of file dummy_client.php.

References $client, $data, $err, and exit.

{
if($client->fault) {
echo '<h2>Fault</h2><pre>';
print_r($data);
echo '</pre>';
}
else
{
// Check for errors
$err = $client->getError();
if ($err) {
// Display the error
echo '<h2>Error</h2><pre>' . $err . '</pre>';
} else {
// Display the result
echo '<h2>Result '.$message.'</h2><pre>';
print_r($data ? $data : 'FAILED');
echo '</pre>';
}
}
}

Variable Documentation

$client = new soap_client($server)

Definition at line 38 of file dummy_client.php.

$ext_uid = "testuser"

Definition at line 16 of file dummy_client.php.

Referenced by isValidSession().

$server = "http://www.ilias.de/lt4el/Services/SOAPAuth/dummy_server.php"

Definition at line 12 of file dummy_client.php.

$soap_pw = "testpw"

Definition at line 20 of file dummy_client.php.

Referenced by isValidSession().

exit

Definition at line 3 of file dummy_client.php.