How to get response via SOAP request?

0 like 0 dislike
60 views
Use ZendFramework.

$client = new \\Zend\\Soap\\Client('http://www.webservicex.com/globalweather.asmx?wsdl'); var_dump($client->call('GetCitiesByCountry',['CountryName' => 'Russian'])); // int(0) var_dump($client->GetCitiesByCountry(['CountryName' => 'Russian'])) // int(0)

Expect to get a list of cities and comes to zero.
Using SOUPUI response is correct. The server hangs on the dev. Why (judging by the response getFunction) I get a wdsl, the parser works without errors, and response function call - not

Conclusion
var_dump($client->getFunctions()) array(4) { [0]=> string(53) "GetWeatherResponse GetWeather(GetWeather $parameters)" [1]=> string(77) "GetCitiesByCountryResponse GetCitiesByCountry(GetCitiesByCountry $parameters)" [2]=> string(53) "GetWeatherResponse GetWeather(GetWeather $parameters)" [3]=> string(77) "GetCitiesByCountryResponse GetCitiesByCountry(GetCitiesByCountry $parameters)" }
by | 60 views

2 Answers

0 like 0 dislike
Try $client->getLastRequest()
by
0 like 0 dislike
Variant of call (), comment out, it throws an exception. A variant of $client->GetCitiesByCountry() it is working, returns a list of cities.
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Jun 3, 2019 by mrgrigo
110,608 questions
257,187 answers
0 comments
40,796 users