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 $usuario= $_GET["usuario"]; $componente= $_GET["componente"]; $accion= $_GET["accion"]; $detalle= $_GET["detalle"]; $ip= $_GET["ip"]; //$login = array('usuario' => 'mnoboa', 'clave' => 'mnoboa'); $registrarLogInput = array('usuario' => $usuario, 'componente' => $componente, 'accion' => $accion, 'detalle' => $detalle, 'ip' => 'ip'); // Call the SOAP method $result = $client->call('ase_registrarLog',array('message' => $registrarLogInput)); 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 if($result['respuesta']==true){ echo 'Respuesta: TRUE
'; } else{ echo 'Respuesta: FALSE
'; } //print_r($result); } } // Display the request and response echo '' . htmlspecialchars($client->request, ENT_QUOTES) . ''; echo '
' . htmlspecialchars($client->response, ENT_QUOTES) . ''; // Display the debug messages echo '
' . htmlspecialchars($client->debug_str, ENT_QUOTES) . ''; ?>