<?php


$wsdlUrl = 'URL'; //Die URL Ihrer Schnittstelle

// SoapClient erzeugen DAS FUNKTIONIERT NICHT
$client = new SoapClient($wsdlUrl);

// Timezone setzen (für Aufrufe diverser Funktionen nötig)
date_default_timezone_set('Europe/Berlin');

// Request-Objekt deklarieren
$getDaoInformations = new StdClass();

/*
   * --------------
   * PFLICHTANGABEN
   * --------------
   */
// Mandanten-Id
$getDaoInformations->mandatorId = 0;

// Api-Key
$getDaoInformations->apiKey = 'APIKEY';

// Start Datum
$getDaoInformations->startDate = 0;


/*
 * -----------------
 * OPTIONALE ANGABEN
 * -----------------
 */

// End Datum
//$getDaoInformations->endDate = 0;



//Ausführen der Abfrage
try {
    $result = $client->getDoiInformations($getDaoInformations);
    var_dump($result);
} catch (Exception $e) {
    //Hier ist ein Fehler aufgetreten und abgefangen worden, wir geben die Fehlermeldung aus.
    echo "Error: " . $e->getMessage() . "\n";
}
?>
