<?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://www.2dcom.fr/libriweb/WsLibri.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://www.2dcom.fr/libriweb/WsLibri.wsdl',
    \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP => \libmoliere\ClassMap::get(),
);
/**
 * Samples for Add ServiceType
 */
$add = new \libmoliere\ServiceType\Add($options);
/**
 * Sample call for add operation/method
 */
if ($add->add($data) !== false) {
    print_r($add->getResult());
} else {
    print_r($add->getLastError());
}
/**
 * Samples for Addfavorite ServiceType
 */
$addfavorite = new \libmoliere\ServiceType\Addfavorite($options);
/**
 * Sample call for add_favorite operation/method
 */
if ($addfavorite->add_favorite($data) !== false) {
    print_r($addfavorite->getResult());
} else {
    print_r($addfavorite->getLastError());
}
/**
 * Samples for Delete ServiceType
 */
$delete = new \libmoliere\ServiceType\Delete($options);
/**
 * Sample call for delete operation/method
 */
if ($delete->delete($data) !== false) {
    print_r($delete->getResult());
} else {
    print_r($delete->getLastError());
}
/**
 * Samples for Deletefavorite ServiceType
 */
$deletefavorite = new \libmoliere\ServiceType\Deletefavorite($options);
/**
 * Sample call for delete_favorite operation/method
 */
if ($deletefavorite->delete_favorite($data) !== false) {
    print_r($deletefavorite->getResult());
} else {
    print_r($deletefavorite->getLastError());
}
/**
 * Samples for Check ServiceType
 */
$check = new \libmoliere\ServiceType\Check($options);
/**
 * Sample call for check operation/method
 */
if ($check->check($data) !== false) {
    print_r($check->getResult());
} else {
    print_r($check->getLastError());
}
/**
 * Samples for Checkextended ServiceType
 */
$checkextended = new \libmoliere\ServiceType\Checkextended($options);
/**
 * Sample call for check_extended operation/method
 */
if ($checkextended->check_extended($data) !== false) {
    print_r($checkextended->getResult());
} else {
    print_r($checkextended->getLastError());
}
/**
 * Samples for Listall ServiceType
 */
$listall = new \libmoliere\ServiceType\Listall($options);
/**
 * Sample call for listall operation/method
 */
if ($listall->listall($data) !== false) {
    print_r($listall->getResult());
} else {
    print_r($listall->getLastError());
}
/**
 * Samples for Listimg ServiceType
 */
$listimg = new \libmoliere\ServiceType\Listimg($options);
/**
 * Sample call for listimg operation/method
 */
if ($listimg->listimg($data) !== false) {
    print_r($listimg->getResult());
} else {
    print_r($listimg->getLastError());
}
/**
 * Samples for Syncinfo ServiceType
 */
$syncinfo = new \libmoliere\ServiceType\Syncinfo($options);
/**
 * Sample call for syncinfo operation/method
 */
if ($syncinfo->syncinfo($data) !== false) {
    print_r($syncinfo->getResult());
} else {
    print_r($syncinfo->getLastError());
}
/**
 * Samples for Getdatas ServiceType
 */
$getdatas = new \libmoliere\ServiceType\Getdatas($options);
/**
 * Sample call for getdatas operation/method
 */
if ($getdatas->getdatas($data) !== false) {
    print_r($getdatas->getResult());
} else {
    print_r($getdatas->getLastError());
}
/**
 * Samples for Dlcmd ServiceType
 */
$dlcmd = new \libmoliere\ServiceType\Dlcmd($options);
/**
 * Sample call for dlcmd operation/method
 */
if ($dlcmd->dlcmd($data) !== false) {
    print_r($dlcmd->getResult());
} else {
    print_r($dlcmd->getLastError());
}
/**
 * Samples for Edstatut ServiceType
 */
$edstatut = new \libmoliere\ServiceType\Edstatut($options);
/**
 * Sample call for edstatut operation/method
 */
if ($edstatut->edstatut($data) !== false) {
    print_r($edstatut->getResult());
} else {
    print_r($edstatut->getLastError());
}
/**
 * Samples for Updatedb ServiceType
 */
$updatedb = new \libmoliere\ServiceType\Updatedb($options);
/**
 * Sample call for updatedb operation/method
 */
if ($updatedb->updatedb($data) !== false) {
    print_r($updatedb->getResult());
} else {
    print_r($updatedb->getLastError());
}
/**
 * Samples for Updateimg ServiceType
 */
$updateimg = new \libmoliere\ServiceType\Updateimg($options);
/**
 * Sample call for updateimg operation/method
 */
if ($updateimg->updateimg($data) !== false) {
    print_r($updateimg->getResult());
} else {
    print_r($updateimg->getLastError());
}
/**
 * Samples for Get ServiceType
 */
$get = new \libmoliere\ServiceType\Get($options);
/**
 * Sample call for getVersion operation/method
 */
if ($get->getVersion($data) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
