25include_once(
"Auth/Auth.php");
 
   26include_once(
"./webservice/soap/lib/nusoap.php");
 
   52        $server_hostname = $settings[
"soap_auth_server"];
 
   53        $server_port = (int) $settings[
"soap_auth_port"];
 
   54        $server_uri = $settings[
"soap_auth_uri"];
 
   56        $use_dotnet = $settings[
"soap_auth_use_dotnet"];
 
   57        if ($settings[
"soap_auth_use_https"]) {
 
   63        $uri.= $server_hostname;
 
   65        if ($server_port > 0) {
 
   66            $uri.= 
":" . $server_port;
 
   69        if ($server_uri != 
"") {
 
   70            $uri.= 
"/" . $server_uri;
 
   74        if ($err = $soap_client->getError()) {
 
   75            return "SOAP Authentication Initialisation Error: " . $err;
 
   85        $valid = $soap_client->call(
 
   87            array($nspref . 
'ext_uid' => $a_ext_uid,
 
   88                $nspref . 
'soap_pw' => $a_soap_pw,
 
   89                $nspref . 
'new_user' => $a_new_user),
 
   96            '<br><pre>' . htmlspecialchars(str_replace(
"\" ", 
"\"\n ", str_replace(
">", 
">\n", $soap_client->request)), ENT_QUOTES) . 
'</pre><br>' .
 
   97            "<br>== Response ==" .
 
   98            "<br>Valid: -" . 
$valid[
"valid"] . 
"-" .
 
   99            '<br><pre>' . htmlspecialchars(str_replace(
"\" ", 
"\"\n ", str_replace(
">", 
">\n", $soap_client->response)), ENT_QUOTES) . 
'</pre>';
 
An exception for terminatinating execution or to throw for unit testing.
static testConnection($a_ext_uid, $a_soap_pw, $a_new_user)
Constructor @access public.
[nu]soapclient higher level class for easy usage.
if($err=$client->getError()) $namespace