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"]; $clave= $_GET["clave"]; //$login = array('usuario' => 'mnoboa', 'clave' => 'mnoboa'); $loginInput = array('usuario' => $usuario, 'clave' => $clave); // Call the SOAP method //$result = $client->call('loginUser',array('message' => $login)); $result = $client->call('ase_validarUsuario',array('message' => $loginInput)); 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['cod_error']!=0) { echo 'Usuario Invalido
'; echo 'Perfil: '.$usuario.'
'; } else { echo 'Usuario Valido
'; echo 'Perfil: '.$result['perfil'].'
'; echo 'Nombre: '.$result['nombre'].'
'; echo 'Apellido: '.$result['apellido'].'
'; echo 'id_empresa: '.$result['id_empresa'].'
'; echo 'Empresa: '.$result['empresa'].'
'; echo 'Usuario: '.$usuario.'
'; } //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) . ''; ?>