Answer the question
In order to leave comments, you need to log in
How to parse soap response in php?
Good afternoon everyone.
Help parse the soap response. The request passes, the response comes, but I can’t get to the necessary data, although they are in the response
Request:
$client = new SoapClient("хххххххххххх?wsdl", array( 'soap_version' => SOAP_1_2));
var_dump($client->GetCity());
I get:
How to get to the cityid / cityname elements?
$result = $client->GetCity();
$result ->City->CityId in response I get NULL
$result ->Data->City->CityId is also NULL
And the second question, is it possible to overtake the resulting string in xml, or are there more convenient ways to work with the received data?
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question