getError(); if ($err) { // Display the error echo '
' . $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 '
'; print_r($result); echo ''; } else { // Check for errors $err = $client->getError(); if ($err) { // Display the error echo '
' . $err . ''; } else { // Display the result echo '
'; print_r($result); echo ''; } } ?>