function __construct() { try { $options = array('location' => "http://localhost/simplisia/classDb/koneksi.php", 'uri' => "http://localhost", 'exceptions' => 1, 'trace' => 1); $client = new SoapClient(null, $options); if (isset($_GET['nama_simplisia'])) { $this->namaSimplisia = $_GET['nama_simplisia']; $this->simplisia_data = $client->readbyNamaSimplisia($this->namaSimplisia); } } catch (SoapFault $e) { echo $e->faultstring; } }