<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">&lt;?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 =&gt; 'main.wsdl',
 * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_TRACE =&gt; true,
 * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_LOGIN =&gt; 'you_secret_login',
 * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_PASSWORD =&gt; 'you_secret_password',
 * );
 * etc...
 */
require_once __DIR__ . '/vendor/autoload.php';
/**
 * Minimal options
 */
$options = array(
    \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_URL =&gt; 'main.wsdl',
    \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP =&gt; \tk_\ClassMap::get(),
);
/**
 * Samples for Status ServiceType
 */
$status = new \tk_\ServiceType\Status($options);
/**
 * Sample call for Status operation/method
 */
if ($status-&gt;Status() !== false) {
    print_r($status-&gt;getResult());
} else {
    print_r($status-&gt;getLastError());
}
/**
 * Samples for Stock ServiceType
 */
$stock = new \tk_\ServiceType\Stock($options);
/**
 * Sample call for StockListAll operation/method
 */
if ($stock-&gt;StockListAll($NonZeroOnly, $LastCode) !== false) {
    print_r($stock-&gt;getResult());
} else {
    print_r($stock-&gt;getLastError());
}
/**
 * Sample call for StockList operation/method
 */
if ($stock-&gt;StockList($NonZeroOnly) !== false) {
    print_r($stock-&gt;getResult());
} else {
    print_r($stock-&gt;getLastError());
}
/**
 * Sample call for StockListColourSize operation/method
 */
if ($stock-&gt;StockListColourSize($NonZeroOnly) !== false) {
    print_r($stock-&gt;getResult());
} else {
    print_r($stock-&gt;getLastError());
}
/**
 * Sample call for StockAvailable operation/method
 */
if ($stock-&gt;StockAvailable($ItemCode, $ColourCode, $SizeCode) !== false) {
    print_r($stock-&gt;getResult());
} else {
    print_r($stock-&gt;getLastError());
}
/**
 * Samples for Get ServiceType
 */
$get = new \tk_\ServiceType\Get($options);
/**
 * Sample call for GetCustomer operation/method
 */
if ($get-&gt;GetCustomer($accountNo, $mobileNo) !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Sample call for GetImage operation/method
 */
if ($get-&gt;GetImage($ItemCode) !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Sample call for GetNotes operation/method
 */
if ($get-&gt;GetNotes($ItemCode) !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Sample call for GetTenderTypes operation/method
 */
if ($get-&gt;GetTenderTypes() !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Samples for Add ServiceType
 */
$add = new \tk_\ServiceType\Add($options);
/**
 * Sample call for AddCustomer operation/method
 */
if ($add-&gt;AddCustomer(new \tk_\StructType\TCustomer()) !== false) {
    print_r($add-&gt;getResult());
} else {
    print_r($add-&gt;getLastError());
}
/**
 * Sample call for AddSale operation/method
 */
if ($add-&gt;AddSale($AutoCreateCustomer, $OrderNumber, new \tk_\StructType\TCustomer(), $Items, $Tenders) !== false) {
    print_r($add-&gt;getResult());
} else {
    print_r($add-&gt;getLastError());
}
/**
 * Sample call for AddRefund operation/method
 */
if ($add-&gt;AddRefund($AutoCreateCustomer, $OrderNumber, new \tk_\StructType\TCustomer(), $Items, $Tenders) !== false) {
    print_r($add-&gt;getResult());
} else {
    print_r($add-&gt;getLastError());
}
/**
 * Sample call for AddOrder operation/method
 */
if ($add-&gt;AddOrder($AutoCreateCustomer, $OrderNumber, new \tk_\StructType\TCustomer(), $Items, $Tenders, $loyalty) !== false) {
    print_r($add-&gt;getResult());
} else {
    print_r($add-&gt;getLastError());
}
/**
 * Samples for Cancel ServiceType
 */
$cancel = new \tk_\ServiceType\Cancel($options);
/**
 * Sample call for CancelOrder operation/method
 */
if ($cancel-&gt;CancelOrder($OriginalOrderNumber, $Tenders) !== false) {
    print_r($cancel-&gt;getResult());
} else {
    print_r($cancel-&gt;getLastError());
}
/**
 * Samples for Custom ServiceType
 */
$custom = new \tk_\ServiceType\Custom($options);
/**
 * Sample call for CustomQuery operation/method
 */
if ($custom-&gt;CustomQuery($Query) !== false) {
    print_r($custom-&gt;getResult());
} else {
    print_r($custom-&gt;getLastError());
}
/**
 * Samples for Gift ServiceType
 */
$gift = new \tk_\ServiceType\Gift($options);
/**
 * Sample call for GiftCardPurchase operation/method
 */
if ($gift-&gt;GiftCardPurchase() !== false) {
    print_r($gift-&gt;getResult());
} else {
    print_r($gift-&gt;getLastError());
}
/**
 * Sample call for GiftCardCancelPurchase operation/method
 */
if ($gift-&gt;GiftCardCancelPurchase($CardNumber) !== false) {
    print_r($gift-&gt;getResult());
} else {
    print_r($gift-&gt;getLastError());
}
/**
 * Sample call for GiftCardsAvailable operation/method
 */
if ($gift-&gt;GiftCardsAvailable() !== false) {
    print_r($gift-&gt;getResult());
} else {
    print_r($gift-&gt;getLastError());
}
/**
 * Sample call for GiftCardBalance operation/method
 */
if ($gift-&gt;GiftCardBalance($CardNumber) !== false) {
    print_r($gift-&gt;getResult());
} else {
    print_r($gift-&gt;getLastError());
}
/**
 * Sample call for GiftCardAudit operation/method
 */
if ($gift-&gt;GiftCardAudit($CardNumber) !== false) {
    print_r($gift-&gt;getResult());
} else {
    print_r($gift-&gt;getLastError());
}
</pre></body></html>