<?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 first 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 => 'https://sinex-saas.com/B00LWS5N6ZZE93Z7/Services/WebServiceStandard.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 => 'https://sinex-saas.com/B00LWS5N6ZZE93Z7/Services/WebServiceStandard.asmx?WSDL',
    \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP => \xt_soapapi\xt_soapapi-php\ClassMap::get(),
);
/**
 * Samples for Recuperer ServiceType
 */
$recuperer = new \xt_soapapi\xt_soapapi-php\ServiceType\Recuperer($options);
/**
 * Sample call for RecupererEtatStock operation/method
 */
if ($recuperer->RecupererEtatStock(new \xt_soapapi\xt_soapapi-php\StructType\RecupererEtatStock()) !== false) {
    print_r($recuperer->getResult());
} else {
    print_r($recuperer->getLastError());
}
/**
 * Sample call for RecupererEtatStockMagasin operation/method
 */
if ($recuperer->RecupererEtatStockMagasin(new \xt_soapapi\xt_soapapi-php\StructType\RecupererEtatStockMagasin()) !== false) {
    print_r($recuperer->getResult());
} else {
    print_r($recuperer->getLastError());
}
/**
 * Sample call for RecupererMvtStock operation/method
 */
if ($recuperer->RecupererMvtStock(new \xt_soapapi\xt_soapapi-php\StructType\RecupererMvtStock()) !== false) {
    print_r($recuperer->getResult());
} else {
    print_r($recuperer->getLastError());
}
/**
 * Sample call for RecupererMvtStockMagasin operation/method
 */
if ($recuperer->RecupererMvtStockMagasin(new \xt_soapapi\xt_soapapi-php\StructType\RecupererMvtStockMagasin()) !== false) {
    print_r($recuperer->getResult());
} else {
    print_r($recuperer->getLastError());
}
/**
 * Sample call for RecupererQteStock operation/method
 */
if ($recuperer->RecupererQteStock(new \xt_soapapi\xt_soapapi-php\StructType\RecupererQteStock()) !== false) {
    print_r($recuperer->getResult());
} else {
    print_r($recuperer->getLastError());
}
/**
 * Sample call for RecupererQteStockMagasin operation/method
 */
if ($recuperer->RecupererQteStockMagasin(new \xt_soapapi\xt_soapapi-php\StructType\RecupererQteStockMagasin()) !== false) {
    print_r($recuperer->getResult());
} else {
    print_r($recuperer->getLastError());
}
/**
 * Sample call for RecupererPhotoProduit operation/method
 */
if ($recuperer->RecupererPhotoProduit(new \xt_soapapi\xt_soapapi-php\StructType\RecupererPhotoProduit()) !== false) {
    print_r($recuperer->getResult());
} else {
    print_r($recuperer->getLastError());
}
/**
 * Samples for Charger ServiceType
 */
$charger = new \xt_soapapi\xt_soapapi-php\ServiceType\Charger($options);
/**
 * Sample call for ChargerClients operation/method
 */
if ($charger->ChargerClients(new \xt_soapapi\xt_soapapi-php\StructType\ChargerClients()) !== false) {
    print_r($charger->getResult());
} else {
    print_r($charger->getLastError());
}
/**
 * Samples for Creer ServiceType
 */
$creer = new \xt_soapapi\xt_soapapi-php\ServiceType\Creer($options);
/**
 * Sample call for CreerClient operation/method
 */
if ($creer->CreerClient(new \xt_soapapi\xt_soapapi-php\StructType\CreerClient()) !== false) {
    print_r($creer->getResult());
} else {
    print_r($creer->getLastError());
}
/**
 * Samples for Modifier ServiceType
 */
$modifier = new \xt_soapapi\xt_soapapi-php\ServiceType\Modifier($options);
/**
 * Sample call for ModifierClient operation/method
 */
if ($modifier->ModifierClient(new \xt_soapapi\xt_soapapi-php\StructType\ModifierClient()) !== false) {
    print_r($modifier->getResult());
} else {
    print_r($modifier->getLastError());
}
