<?php
/**
 * This file aims to show you how to use this generated package.
 * In addition, the goal is to show which methods are available and the fist needed parameter(s)
 * You have to use an associative array such as:
 * - the key must be a constant beginning with WSDL_ from AbstractSoapClientbase class each generated ServiceType class extends this class
 * - the value must be the corresponding key value (each option matches a {@link http://www.php.net/manual/en/soapclient.soapclient.php} option)
 * $options = array(
 * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_URL => 'http://api.mouzenidis-travel.com/searchreserv/ServiceMainSearch.svc?singleWsdl',
 * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_TRACE => true,
 * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_LOGIN => 'you_secret_login',
 * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_PASSWORD => 'you_secret_password',
 * );
 * etc....
 */
require_once __DIR__ . '/vendor/autoload.php';
/**
 * Minimal options
 */
$options = array(
    \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_URL => 'http://api.mouzenidis-travel.com/searchreserv/ServiceMainSearch.svc?singleWsdl',
    \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP => ClassMap::get(),
);
/**
 * Samples for Get ServiceType
 */
$get = new \ServiceType\Get($options);
/**
 * Sample call for GetData operation/method
 */
if ($get->GetData(new \StructType\GetData()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetDataDistinctHotels operation/method
 */
if ($get->GetDataDistinctHotels(new \StructType\GetDataDistinctHotels()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetMinPrices operation/method
 */
if ($get->GetMinPrices(new \StructType\GetMinPrices()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetFilter operation/method
 */
if ($get->GetFilter(new \StructType\GetFilter()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetFilter2 operation/method
 */
if ($get->GetFilter2(new \StructType\GetFilter2()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetFilter3 operation/method
 */
if ($get->GetFilter3(new \StructType\GetFilter3()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetFilter4 operation/method
 */
if ($get->GetFilter4(new \StructType\GetFilter4()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetFilter5 operation/method
 */
if ($get->GetFilter5(new \StructType\GetFilter5()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetCountries operation/method
 */
if ($get->GetCountries(new \StructType\GetCountries()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetTourDirections operation/method
 */
if ($get->GetTourDirections(new \StructType\GetTourDirections()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetCityDeparture operation/method
 */
if ($get->GetCityDeparture(new \StructType\GetCityDeparture()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetCityDepartureByTypeTour operation/method
 */
if ($get->GetCityDepartureByTypeTour(new \StructType\GetCityDepartureByTypeTour()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetBaseDictionary operation/method
 */
if ($get->GetBaseDictionary(new \StructType\GetBaseDictionary()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetDictionary operation/method
 */
if ($get->GetDictionary(new \StructType\GetDictionary()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetDictionaries operation/method
 */
if ($get->GetDictionaries(new \StructType\GetDictionaries()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetStat operation/method
 */
if ($get->GetStat(new \StructType\GetStat()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetCourse operation/method
 */
if ($get->GetCourse(new \StructType\GetCourse()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetPricesPerPax operation/method
 */
if ($get->GetPricesPerPax(new \StructType\GetPricesPerPax()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetTourDirectionList operation/method
 */
if ($get->GetTourDirectionList(new \StructType\GetTourDirectionList()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Samples for Search ServiceType
 */
$search = new \ServiceType\Search($options);
/**
 * Sample call for SearchTourGroupByHotel operation/method
 */
if ($search->SearchTourGroupByHotel(new \StructType\SearchTourGroupByHotel()) !== false) {
    print_r($search->getResult());
} else {
    print_r($search->getLastError());
}
/**
 * Samples for Quota ServiceType
 */
$quota = new \ServiceType\Quota($options);
/**
 * Sample call for QuotaHotelsState operation/method
 */
if ($quota->QuotaHotelsState(new \StructType\QuotaHotelsState()) !== false) {
    print_r($quota->getResult());
} else {
    print_r($quota->getLastError());
}
/**
 * Sample call for QuotaFlightsState operation/method
 */
if ($quota->QuotaFlightsState(new \StructType\QuotaFlightsState()) !== false) {
    print_r($quota->getResult());
} else {
    print_r($quota->getLastError());
}
