<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 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 =&gt; 'https://pttws.ptt.gov.tr/PttVeriYukleme/services/Sorgu?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; 'https://pttws.ptt.gov.tr/PttVeriYukleme/services/Sorgu?wsdl',
    \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP =&gt; ClassMap::get(),
);
/**
 * Samples for Kabul ServiceType
 */
$kabul = new \ServiceType\Kabul($options);
/**
 * Sample call for kabulEkle2 operation/method
 */
if ($kabul-&gt;kabulEkle2(new \StructType\KabulEkle2()) !== false) {
    print_r($kabul-&gt;getResult());
} else {
    print_r($kabul-&gt;getLastError());
}
/**
 * Sample call for kabulEkleParcaliBarkod operation/method
 */
if ($kabul-&gt;kabulEkleParcaliBarkod(new \StructType\KabulEkleParcaliBarkod()) !== false) {
    print_r($kabul-&gt;getResult());
} else {
    print_r($kabul-&gt;getLastError());
}
/**
 * Sample call for kabulEkle operation/method
 */
if ($kabul-&gt;kabulEkle(new \StructType\KabulEkle()) !== false) {
    print_r($kabul-&gt;getResult());
} else {
    print_r($kabul-&gt;getLastError());
}
/**
 * Samples for Siparis ServiceType
 */
$siparis = new \ServiceType\Siparis($options);
/**
 * Sample call for siparisIstekEkle2 operation/method
 */
if ($siparis-&gt;siparisIstekEkle2(new \StructType\SiparisIstekEkle2()) !== false) {
    print_r($siparis-&gt;getResult());
} else {
    print_r($siparis-&gt;getLastError());
}
/**
 * Sample call for siparisIstekEkle operation/method
 */
if ($siparis-&gt;siparisIstekEkle(new \StructType\SiparisIstekEkle()) !== false) {
    print_r($siparis-&gt;getResult());
} else {
    print_r($siparis-&gt;getLastError());
}
/**
 * Samples for Referans ServiceType
 */
$referans = new \ServiceType\Referans($options);
/**
 * Sample call for referansVeriSil operation/method
 */
if ($referans-&gt;referansVeriSil(new \StructType\ReferansVeriSil()) !== false) {
    print_r($referans-&gt;getResult());
} else {
    print_r($referans-&gt;getLastError());
}
/**
 * Samples for Barkod ServiceType
 */
$barkod = new \ServiceType\Barkod($options);
/**
 * Sample call for barkodVeriSil operation/method
 */
if ($barkod-&gt;barkodVeriSil(new \StructType\BarkodVeriSil()) !== false) {
    print_r($barkod-&gt;getResult());
} else {
    print_r($barkod-&gt;getLastError());
}
</pre></body></html>