public function __construct() { $options = array('location' => "http://localhost/simplisia/classDb/koneksi.php", 'uri' => "http://localhost", 'exceptions' => 1); try { $client = new SoapClient(null, $options); $this->simplisia = $client->readAll(); } catch (SoapFault $e) { echo $e->faultstring; } }