我尝试从http://api.mouzenidis-travel.com/search/ServiceMainSearch.svc?Wsdl获取结果
有一些获取数据的方法:
- GetCountries // 获取可用的国家数据
- GetCityDeparture(int countryID) //获取可用的出发城市数据
- GetFilter(int countryId, List leaveCityId) // 获取其他过滤器
// 我的 PHP 代码:
$client = new SoapClient(" http://api.mouzenidis-travel.com/search/ServiceMainSearch.svc?Wsdl ");
$countryList = $client->GetCountries(); //下面的结果
[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 ...
我写信给 Mouzendinis 技术支持,没有结果。
是什么让我错了?