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"]; //$login = array('usuario' => 'mnoboa', 'clave' => 'mnoboa'); $validaComponenteInput = array('usuario' => $usuario, 'componente' => $componente); // Call the SOAP method $result = $client->call('ase_validarComponente',array('message' => $validaComponenteInput)); 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['valida']==true){ echo '

Respuesta: TRUE

'; } else{ echo '

Respuesta: FALSE

'; } //print_r($result); } } // Display the request and response echo '

Request

'; echo '
' . htmlspecialchars($client->request, ENT_QUOTES) . '
'; echo '

Response

'; echo '
' . htmlspecialchars($client->response, ENT_QUOTES) . '
'; // Display the debug messages echo '

Debug

'; echo '
' . htmlspecialchars($client->debug_str, ENT_QUOTES) . '
'; ?>