0
I have this function .......
$client = new SoapClient('http://wss........N.asmx?wsdl');
$funcao = 'ConsultarUsuario';
$argumentos = array($funcao => array(
'ChaveUsuario' => 'U10..........921',
'aplicativo' => 'S..........ob',
'RotaDatabase' => 'C:\Ine......................s\database.mdb'
));
$resultado = $client->__soapCall($funcao, $argumentos);
echo ' RESPOSTA = ';
print_r($resultado);
My answer in the browser
RESPOSTA = stdClass Object ( [ConsultarUsuarioResult] => stdClass Object ( [string] => Array ( [0] => Usuário Registrado [1] => User Teste Mob1 [2] => U10SEG0721 [3] => 10/07/2017 03:00:00 [4] => 10/08/2017 03:00:00 [5] => Ativo [6] => Paulo R Maia [7] => 55555555555555 [8] => endereço teste [9] => 77 [10] => casa [11] => bairro teste [12] => cidade teste [13] => sp [14] => 55555555 [15] => 55555555555 [16] => [email protected] [17] => Sistema [18] => 99 [19] => Testando [20] => 1 ) ) )
I need to extract values from some of these keys and store in $variables
I’m trying so, but without success.
But my real problem , is that I can’t extract the values from the keys, to store in variables
Attempts .......
$resultado->ConsultarUsuarioResult[6];
echo $resultado;
Not Even So.........
$valorExtraido = $resultado->ConsultarUsuarioResult[6];
echo $valorExtraido;
. . . What would be the solution ?
SOLVED ! Thank you , Isac
– PauloMaia