SOAP not fetches result in PHP for Mouzenidis travel
Posted
by
????? ????????????
on Stack Overflow
See other posts from Stack Overflow
or by ????? ????????????
Published on 2013-04-17T10:25:21Z
Indexed on
2014/06/03
9:25 UTC
Read the original article
Hit count: 243
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?
© Stack Overflow or respective owner