<?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 => 'main.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 => 'main.wsdl',
    \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP => ClassMap::get(),
);
/**
 * Samples for Get ServiceType
 */
$get = new \ServiceType\Get($options);
/**
 * Sample call for GetAdditionalCostDefinitions operation/method
 */
if ($get->GetAdditionalCostDefinitions(new \StructType\GetAdditionalCostDefinitions()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetAddressTypes operation/method
 */
if ($get->GetAddressTypes(new \StructType\GetAddressTypes()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetArticles operation/method
 */
if ($get->GetArticles(new \StructType\GetArticles()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetBranches operation/method
 */
if ($get->GetBranches(new \StructType\GetBranches()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetBrands operation/method
 */
if ($get->GetBrands(new \StructType\GetBrands()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetCharacteristics operation/method
 */
if ($get->GetCharacteristics(new \StructType\GetCharacteristics()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetCharacteristicTypes operation/method
 */
if ($get->GetCharacteristicTypes(new \StructType\GetCharacteristicTypes()) !== 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 GetCurrencies operation/method
 */
if ($get->GetCurrencies(new \StructType\GetCurrencies()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetCustomers operation/method
 */
if ($get->GetCustomers(new \StructType\GetCustomers()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetSystemCommChannelTypes operation/method
 */
if ($get->GetSystemCommChannelTypes(new \StructType\GetSystemCommChannelTypes()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetCustomerPurchaseHistory operation/method
 */
if ($get->GetCustomerPurchaseHistory(new \StructType\GetCustomerPurchaseHistory()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetEmployees operation/method
 */
if ($get->GetEmployees(new \StructType\GetEmployees()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetDiscountReasons operation/method
 */
if ($get->GetDiscountReasons(new \StructType\GetDiscountReasons()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetDeliveryNotes operation/method
 */
if ($get->GetDeliveryNotes(new \StructType\GetDeliveryNotes()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetInvoices operation/method
 */
if ($get->GetInvoices(new \StructType\GetInvoices()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetGoodsInAdvices operation/method
 */
if ($get->GetGoodsInAdvices(new \StructType\GetGoodsInAdvices()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetManufacturerColours operation/method
 */
if ($get->GetManufacturerColours(new \StructType\GetManufacturerColours()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetManufacturers operation/method
 */
if ($get->GetManufacturers(new \StructType\GetManufacturers()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetOrders operation/method
 */
if ($get->GetOrders(new \StructType\GetOrders()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetOpenOrderStock operation/method
 */
if ($get->GetOpenOrderStock(new \StructType\GetOpenOrderStock()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetLanguages operation/method
 */
if ($get->GetLanguages(new \StructType\GetLanguages()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetPaymentTypes operation/method
 */
if ($get->GetPaymentTypes(new \StructType\GetPaymentTypes()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetProductGroups operation/method
 */
if ($get->GetProductGroups(new \StructType\GetProductGroups()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetSalutations operation/method
 */
if ($get->GetSalutations(new \StructType\GetSalutations()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetShops operation/method
 */
if ($get->GetShops(new \StructType\GetShops()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetSizes operation/method
 */
if ($get->GetSizes(new \StructType\GetSizes()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetSizeRanges operation/method
 */
if ($get->GetSizeRanges(new \StructType\GetSizeRanges()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetStocks operation/method
 */
if ($get->GetStocks(new \StructType\GetStocks()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetSystemColours operation/method
 */
if ($get->GetSystemColours(new \StructType\GetSystemColours()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetVats operation/method
 */
if ($get->GetVats(new \StructType\GetVats()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetVouchers operation/method
 */
if ($get->GetVouchers(new \StructType\GetVouchers()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetDeletedObjectsIterated operation/method
 */
if ($get->GetDeletedObjectsIterated(new \StructType\GetDeletedObjectsIterated()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetStatus operation/method
 */
if ($get->GetStatus(new \StructType\GetStatus()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetIbts operation/method
 */
if ($get->GetIbts(new \StructType\GetIbts()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetReturnReasons operation/method
 */
if ($get->GetReturnReasons(new \StructType\GetReturnReasons()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Samples for Find ServiceType
 */
$find = new \ServiceType\Find($options);
/**
 * Sample call for FindArticleByOid operation/method
 */
if ($find->FindArticleByOid(new \StructType\FindArticleByOid()) !== false) {
    print_r($find->getResult());
} else {
    print_r($find->getLastError());
}
/**
 * Sample call for FindArticleByOidWithCharcteristics operation/method
 */
if ($find->FindArticleByOidWithCharcteristics(new \StructType\FindArticleByOidWithCharcteristics()) !== false) {
    print_r($find->getResult());
} else {
    print_r($find->getLastError());
}
/**
 * Sample call for FindArticleByEanOid operation/method
 */
if ($find->FindArticleByEanOid(new \StructType\FindArticleByEanOid()) !== false) {
    print_r($find->getResult());
} else {
    print_r($find->getLastError());
}
/**
 * Sample call for FindArticleByEanOidWithCharcteristics operation/method
 */
if ($find->FindArticleByEanOidWithCharcteristics(new \StructType\FindArticleByEanOidWithCharcteristics()) !== false) {
    print_r($find->getResult());
} else {
    print_r($find->getLastError());
}
/**
 * Sample call for FindCustomerByOid operation/method
 */
if ($find->FindCustomerByOid(new \StructType\FindCustomerByOid()) !== false) {
    print_r($find->getResult());
} else {
    print_r($find->getLastError());
}
/**
 * Sample call for FindCustomersByParameter operation/method
 */
if ($find->FindCustomersByParameter(new \StructType\FindCustomersByParameter()) !== false) {
    print_r($find->getResult());
} else {
    print_r($find->getLastError());
}
/**
 * Sample call for FindStockByArticleOid operation/method
 */
if ($find->FindStockByArticleOid(new \StructType\FindStockByArticleOid()) !== false) {
    print_r($find->getResult());
} else {
    print_r($find->getLastError());
}
/**
 * Sample call for FindStockByEanOid operation/method
 */
if ($find->FindStockByEanOid(new \StructType\FindStockByEanOid()) !== false) {
    print_r($find->getResult());
} else {
    print_r($find->getLastError());
}
/**
 * Samples for Send ServiceType
 */
$send = new \ServiceType\Send($options);
/**
 * Sample call for SendGoodsInAdviceConfirmation operation/method
 */
if ($send->SendGoodsInAdviceConfirmation(new \StructType\SendGoodsInAdviceConfirmation()) !== false) {
    print_r($send->getResult());
} else {
    print_r($send->getLastError());
}
/**
 * Sample call for SendStockCorrection operation/method
 */
if ($send->SendStockCorrection(new \StructType\SendStockCorrection()) !== false) {
    print_r($send->getResult());
} else {
    print_r($send->getLastError());
}
/**
 * Sample call for SendCustomer operation/method
 */
if ($send->SendCustomer(new \StructType\SendCustomer()) !== false) {
    print_r($send->getResult());
} else {
    print_r($send->getLastError());
}
/**
 * Sample call for SendDeliveryNotes operation/method
 */
if ($send->SendDeliveryNotes(new \StructType\SendDeliveryNotes()) !== false) {
    print_r($send->getResult());
} else {
    print_r($send->getLastError());
}
/**
 * Sample call for SendInvoices operation/method
 */
if ($send->SendInvoices(new \StructType\SendInvoices()) !== false) {
    print_r($send->getResult());
} else {
    print_r($send->getLastError());
}
/**
 * Sample call for SendOrders operation/method
 */
if ($send->SendOrders(new \StructType\SendOrders()) !== false) {
    print_r($send->getResult());
} else {
    print_r($send->getLastError());
}
/**
 * Sample call for SendVouchers operation/method
 */
if ($send->SendVouchers(new \StructType\SendVouchers()) !== false) {
    print_r($send->getResult());
} else {
    print_r($send->getLastError());
}
/**
 * Sample call for SendSalesReceipt operation/method
 */
if ($send->SendSalesReceipt(new \StructType\SendSalesReceipt()) !== false) {
    print_r($send->getResult());
} else {
    print_r($send->getLastError());
}
/**
 * Samples for Check ServiceType
 */
$check = new \ServiceType\Check($options);
/**
 * Sample call for CheckDeletedObject operation/method
 */
if ($check->CheckDeletedObject(new \StructType\CheckDeletedObject()) !== false) {
    print_r($check->getResult());
} else {
    print_r($check->getLastError());
}
/**
 * Samples for Update ServiceType
 */
$update = new \ServiceType\Update($options);
/**
 * Sample call for UpdateIbt operation/method
 */
if ($update->UpdateIbt(new \StructType\UpdateIbt()) !== false) {
    print_r($update->getResult());
} else {
    print_r($update->getLastError());
}
/**
 * Samples for Receive ServiceType
 */
$receive = new \ServiceType\Receive($options);
/**
 * Sample call for ReceiveIbt operation/method
 */
if ($receive->ReceiveIbt(new \StructType\ReceiveIbt()) !== false) {
    print_r($receive->getResult());
} else {
    print_r($receive->getLastError());
}
/**
 * Samples for Create ServiceType
 */
$create = new \ServiceType\Create($options);
/**
 * Sample call for CreateIbt operation/method
 */
if ($create->CreateIbt(new \StructType\CreateIbt()) !== false) {
    print_r($create->getResult());
} else {
    print_r($create->getLastError());
}
