<?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://178.170.116.194:9081/MonControleTechnique.asmx?WSDL',
 * \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://178.170.116.194:9081/MonControleTechnique.asmx?WSDL',
    \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP => ClassMap::get(),
);
/**
 * Samples for Groupes ServiceType
 */
$groupes = new \ServiceType\Groupes($options);
/**
 * Sample call for Groupes operation/method
 */
if ($groupes->Groupes(new \StructType\Groupes()) !== false) {
    print_r($groupes->getResult());
} else {
    print_r($groupes->getLastError());
}
/**
 * Samples for Centres ServiceType
 */
$centres = new \ServiceType\Centres($options);
/**
 * Sample call for Centres operation/method
 */
if ($centres->Centres(new \StructType\Centres()) !== false) {
    print_r($centres->getResult());
} else {
    print_r($centres->getLastError());
}
/**
 * Samples for Activites ServiceType
 */
$activites = new \ServiceType\Activites($options);
/**
 * Sample call for Activites operation/method
 */
if ($activites->Activites(new \StructType\Activites()) !== false) {
    print_r($activites->getResult());
} else {
    print_r($activites->getLastError());
}
/**
 * Samples for Prestations ServiceType
 */
$prestations = new \ServiceType\Prestations($options);
/**
 * Sample call for Prestations operation/method
 */
if ($prestations->Prestations(new \StructType\Prestations()) !== false) {
    print_r($prestations->getResult());
} else {
    print_r($prestations->getLastError());
}
/**
 * Sample call for PrestationsCTonline operation/method
 */
if ($prestations->PrestationsCTonline(new \StructType\PrestationsCTonline()) !== false) {
    print_r($prestations->getResult());
} else {
    print_r($prestations->getLastError());
}
/**
 * Samples for Options ServiceType
 */
$options = new \ServiceType\Options($options);
/**
 * Sample call for Options operation/method
 */
if ($options->Options(new \StructType\Options()) !== false) {
    print_r($options->getResult());
} else {
    print_r($options->getLastError());
}
/**
 * Samples for Planning ServiceType
 */
$planning = new \ServiceType\Planning($options);
/**
 * Sample call for Planning operation/method
 */
if ($planning->Planning(new \StructType\Planning()) !== false) {
    print_r($planning->getResult());
} else {
    print_r($planning->getLastError());
}
/**
 * Sample call for PlanningCTonline operation/method
 */
if ($planning->PlanningCTonline(new \StructType\PlanningCTonline()) !== false) {
    print_r($planning->getResult());
} else {
    print_r($planning->getLastError());
}
/**
 * Samples for Coupon ServiceType
 */
$coupon = new \ServiceType\Coupon($options);
/**
 * Sample call for Coupon operation/method
 */
if ($coupon->Coupon(new \StructType\Coupon()) !== false) {
    print_r($coupon->getResult());
} else {
    print_r($coupon->getLastError());
}
/**
 * Samples for Horaires ServiceType
 */
$horaires = new \ServiceType\Horaires($options);
/**
 * Sample call for Horaires operation/method
 */
if ($horaires->Horaires(new \StructType\Horaires()) !== false) {
    print_r($horaires->getResult());
} else {
    print_r($horaires->getLastError());
}
/**
 * Samples for Tarifs ServiceType
 */
$tarifs = new \ServiceType\Tarifs($options);
/**
 * Sample call for Tarifs operation/method
 */
if ($tarifs->Tarifs(new \StructType\Tarifs()) !== false) {
    print_r($tarifs->getResult());
} else {
    print_r($tarifs->getLastError());
}
/**
 * Samples for Infos ServiceType
 */
$infos = new \ServiceType\Infos($options);
/**
 * Sample call for InfosRelance operation/method
 */
if ($infos->InfosRelance(new \StructType\InfosRelance()) !== false) {
    print_r($infos->getResult());
} else {
    print_r($infos->getLastError());
}
/**
 * Samples for Unsubscribe ServiceType
 */
$unsubscribe = new \ServiceType\Unsubscribe($options);
/**
 * Sample call for Unsubscribe operation/method
 */
if ($unsubscribe->Unsubscribe(new \StructType\Unsubscribe()) !== false) {
    print_r($unsubscribe->getResult());
} else {
    print_r($unsubscribe->getLastError());
}
/**
 * Samples for Tracking ServiceType
 */
$tracking = new \ServiceType\Tracking($options);
/**
 * Sample call for Tracking operation/method
 */
if ($tracking->Tracking(new \StructType\Tracking()) !== false) {
    print_r($tracking->getResult());
} else {
    print_r($tracking->getLastError());
}
