I managed via PHP to connect to a WebService via SOAP, but I can not capture the return data. I made a var_dump
in the return variable, and what is displayed on the screen follows below:
object(stdClass)[2]
public 'BuscaSMPResult' =>
object(stdClass)[3]
public 'MensagensErro' =>
object(stdClass)[4]
public 'RetornoMensagem' =>
object(stdClass)[5]
...
public 'TransacaoOk' => boolean false
public 'SMP' => null
How can I capture this data?
Edit
Text returned when using print_r
instead of var_dump
:
stdClass Object
(
[InsereSMPResult] => stdClass Object
(
[MensagensErro] => stdClass Object
(
[RetornoMensagem] => stdClass Object
(
[Codigo] => 1001
[Mensagem] => É necessário informar o Token
)
)
[TransacaoOk] =>
[MensagensAviso] => stdClass Object
(
)
[MensagensSucesso] => stdClass Object
(
)
[AnoSMP] => 0
[IdSMP] => 0
[NumeroSMP] => 0
)
)