SOAP not fetches result in PHP for Mouzenidis travel
- by ????? ????????????
I try to get results from http://api.mouzenidis-travel.com/search/ServiceMainSearch.svc?Wsdl
There is some methods to fetch data:
GetCountries // fetch available country data
GetCityDeparture(int countryID) //fetch available departure city data
GetFilter(int countryId, List departureCityId) // fetch others filters
// My PHP code:
$client = new SoapClient("http://api.mouzenidis-travel.com/search/ServiceMainSearch.svc?Wsdl");
$countryList = $client-GetCountries(); // results below
[0] => stdClass Object
(
[Code] => GR
[ID] => 29
[Name] => ГрециÑ
[NameLat] => Greece
)
[1] => stdClass Object
(
[Code] => CZ
[ID] => 6240
[Name] => ЧехиÑ
[NameLat] => Czech Republic
)
$cityDepObj = $client-GetCityDeparture(array('countryID'=29));
[0] => stdClass Object
(
[Code] => MOW
[GroupName] => РоÑÑиÑ
[GroupNameLat] => РоÑÑиÑ
[GroupOrder] => 4
[ID] => 1
[Name] => МоÑква
[NameLat] => Moscow
[CountryID] => 460
[IsDeparture] => 1
[RegionID] => 0
)
[1] => stdClass Object
(
[Code] =>
[GroupName] => РоÑÑиÑ
[GroupNameLat] => РоÑÑиÑ
[GroupOrder] => 4
[ID] => 299
[Name] => ÐрхангельÑк
[NameLat] => Arkhangelsk
[CountryID] => 460
[IsDeparture] => 1
[RegionID] => 0
)
.
.
.
$client-GetFilter(array(29,array(1)));
Fatal error: Uncaught SoapFault exception: [s:Client] No connections available ...
I wrote to the Mouzendinis Tech Support, no results.
What make I wrong?