<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/PttBilgi/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/PttBilgi/services/Sorgu?wsdl',
    \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP =&gt; ClassMap::get(),
);
/**
 * Samples for Kargo ServiceType
 */
$kargo = new \ServiceType\Kargo($options);
/**
 * Sample call for kargoUcret operation/method
 */
if ($kargo-&gt;kargoUcret(new \StructType\KargoUcret()) !== false) {
    print_r($kargo-&gt;getResult());
} else {
    print_r($kargo-&gt;getLastError());
}
/**
 * Samples for Telgraf ServiceType
 */
$telgraf = new \ServiceType\Telgraf($options);
/**
 * Sample call for telgrafUcret operation/method
 */
if ($telgraf-&gt;telgrafUcret(new \StructType\TelgrafUcret()) !== false) {
    print_r($telgraf-&gt;getResult());
} else {
    print_r($telgraf-&gt;getLastError());
}
/**
 * Samples for Gonderi ServiceType
 */
$gonderi = new \ServiceType\Gonderi($options);
/**
 * Sample call for gonderiDurumAciklamaSorgula operation/method
 */
if ($gonderi-&gt;gonderiDurumAciklamaSorgula(new \StructType\GonderiDurumAciklamaSorgula()) !== false) {
    print_r($gonderi-&gt;getResult());
} else {
    print_r($gonderi-&gt;getLastError());
}
/**
 * Samples for Yurt ServiceType
 */
$yurt = new \ServiceType\Yurt($options);
/**
 * Sample call for yurtDisiFaxUcret operation/method
 */
if ($yurt-&gt;yurtDisiFaxUcret(new \StructType\YurtDisiFaxUcret()) !== false) {
    print_r($yurt-&gt;getResult());
} else {
    print_r($yurt-&gt;getLastError());
}
/**
 * Samples for Ucret ServiceType
 */
$ucret = new \ServiceType\Ucret($options);
/**
 * Sample call for ucretKargo2 operation/method
 */
if ($ucret-&gt;ucretKargo2(new \StructType\UcretKargo2()) !== false) {
    print_r($ucret-&gt;getResult());
} else {
    print_r($ucret-&gt;getLastError());
}
/**
 * Samples for Kargomat ServiceType
 */
$kargomat = new \ServiceType\Kargomat($options);
/**
 * Sample call for kargomatListesi operation/method
 */
if ($kargomat-&gt;kargomatListesi(new \StructType\KargomatListesi()) !== false) {
    print_r($kargomat-&gt;getResult());
} else {
    print_r($kargomat-&gt;getLastError());
}
/**
 * Samples for Posta ServiceType
 */
$posta = new \ServiceType\Posta($options);
/**
 * Sample call for postaUcret operation/method
 */
if ($posta-&gt;postaUcret(new \StructType\PostaUcret()) !== false) {
    print_r($posta-&gt;getResult());
} else {
    print_r($posta-&gt;getLastError());
}
/**
 * Samples for Ilce ServiceType
 */
$ilce = new \ServiceType\Ilce($options);
/**
 * Sample call for ilceSorgula operation/method
 */
if ($ilce-&gt;ilceSorgula(new \StructType\IlceSorgula()) !== false) {
    print_r($ilce-&gt;getResult());
} else {
    print_r($ilce-&gt;getLastError());
}
/**
 * Samples for Ulke ServiceType
 */
$ulke = new \ServiceType\Ulke($options);
/**
 * Sample call for ulkeKodGrupSorgulama operation/method
 */
if ($ulke-&gt;ulkeKodGrupSorgulama(new \StructType\UlkeKodGrupSorgulama()) !== false) {
    print_r($ulke-&gt;getResult());
} else {
    print_r($ulke-&gt;getLastError());
}
/**
 * Samples for Ek ServiceType
 */
$ek = new \ServiceType\Ek($options);
/**
 * Sample call for ekHizmetSorgula operation/method
 */
if ($ek-&gt;ekHizmetSorgula(new \StructType\EkHizmetSorgula()) !== false) {
    print_r($ek-&gt;getResult());
} else {
    print_r($ek-&gt;getLastError());
}
</pre></body></html>