getError(); if ($err) { // Display the error echo '

Constructor error

' . $err . '
'; // At this point, you know the call that follows will fail } // Call the SOAP method $username="xxx"; //user email student PENS $password="yyy"; //password email student PENS $data = array('usrname' => $username, 'pwd' => $password); $result = $client->call('DataDiriSiswa', array('data' => $data)); // Check for a fault if ($client->fault) { echo '

Fault

';
    print_r($result);
    echo '
'; } else { // Check for errors $err = $client->getError(); if ($err) { // Display the error echo '

Error

' . $err . '
'; } else { // Display the result echo '

Result

';
		print_r($result);		
    echo '
'; } } ?>