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: 219

Filed under:
|

I try to get results from http://api.mouzenidis-travel.com/search/ServiceMainSearch.svc?Wsdl

There is some methods to fetch data:

  1. GetCountries // fetch available country data
  2. GetCityDeparture(int countryID) //fetch available departure city data
  3. 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

Related posts about php

Related posts about soap