<?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 => 'https://test.poland.fedex.com/fdsWs/IklServicePort?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 => 'https://test.poland.fedex.com/fdsWs/IklServicePort?WSDL',
    \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP => ClassMap::get(),
);
/**
 * Samples for Pobierz ServiceType
 */
$pobierz = new \ServiceType\Pobierz($options);
/**
 * Sample call for pobierzStatusyPrzesylki operation/method
 */
if ($pobierz->pobierzStatusyPrzesylki(new \StructType\PobierzStatusyPrzesylki()) !== false) {
    print_r($pobierz->getResult());
} else {
    print_r($pobierz->getLastError());
}
/**
 * Sample call for pobierzStatusyPaczki operation/method
 */
if ($pobierz->pobierzStatusyPaczki(new \StructType\PobierzStatusyPaczki()) !== false) {
    print_r($pobierz->getResult());
} else {
    print_r($pobierz->getLastError());
}
/**
 * Sample call for pobierzDokumentWydania operation/method
 */
if ($pobierz->pobierzDokumentWydania(new \StructType\PobierzDokumentWydania()) !== false) {
    print_r($pobierz->getResult());
} else {
    print_r($pobierz->getLastError());
}
/**
 * Sample call for pobierzNumerDokumentuList operation/method
 */
if ($pobierz->pobierzNumerDokumentuList(new \StructType\PobierzNumerDokumentuList()) !== false) {
    print_r($pobierz->getResult());
} else {
    print_r($pobierz->getLastError());
}
/**
 * Sample call for pobierzDostepneUslugi operation/method
 */
if ($pobierz->pobierzDostepneUslugi(new \StructType\PobierzDostepneUslugi()) !== false) {
    print_r($pobierz->getResult());
} else {
    print_r($pobierz->getLastError());
}
/**
 * Sample call for pobierzZbiorStatusow operation/method
 */
if ($pobierz->pobierzZbiorStatusow(new \StructType\PobierzZbiorStatusow()) !== false) {
    print_r($pobierz->getResult());
} else {
    print_r($pobierz->getLastError());
}
/**
 * Sample call for pobierzWersje operation/method
 */
if ($pobierz->pobierzWersje(new \StructType\PobierzWersje()) !== false) {
    print_r($pobierz->getResult());
} else {
    print_r($pobierz->getLastError());
}
/**
 * Samples for Wydrukuj ServiceType
 */
$wydrukuj = new \ServiceType\Wydrukuj($options);
/**
 * Sample call for wydrukujEtykiete operation/method
 */
if ($wydrukuj->wydrukujEtykiete(new \StructType\WydrukujEtykiete()) !== false) {
    print_r($wydrukuj->getResult());
} else {
    print_r($wydrukuj->getLastError());
}
/**
 * Sample call for wydrukujEtykietePaczki operation/method
 */
if ($wydrukuj->wydrukujEtykietePaczki(new \StructType\WydrukujEtykietePaczki()) !== false) {
    print_r($wydrukuj->getResult());
} else {
    print_r($wydrukuj->getLastError());
}
/**
 * Samples for Wydrukj ServiceType
 */
$wydrukj = new \ServiceType\Wydrukj($options);
/**
 * Sample call for wydrukjList operation/method
 */
if ($wydrukj->wydrukjList(new \StructType\WydrukjList()) !== false) {
    print_r($wydrukj->getResult());
} else {
    print_r($wydrukj->getLastError());
}
/**
 * Samples for Zapisz ServiceType
 */
$zapisz = new \ServiceType\Zapisz($options);
/**
 * Sample call for zapiszDokumentWydania operation/method
 */
if ($zapisz->zapiszDokumentWydania(new \StructType\ZapiszDokumentWydania()) !== false) {
    print_r($zapisz->getResult());
} else {
    print_r($zapisz->getLastError());
}
/**
 * Sample call for zapiszList operation/method
 */
if ($zapisz->zapiszList(new \StructType\ZapiszList()) !== false) {
    print_r($zapisz->getResult());
} else {
    print_r($zapisz->getLastError());
}
/**
 * Sample call for zapiszListV2 operation/method
 */
if ($zapisz->zapiszListV2(new \StructType\ZapiszListV2()) !== false) {
    print_r($zapisz->getResult());
} else {
    print_r($zapisz->getLastError());
}
/**
 * Sample call for zapiszListZwrotnyV2 operation/method
 */
if ($zapisz->zapiszListZwrotnyV2(new \StructType\ZapiszListZwrotnyV2()) !== false) {
    print_r($zapisz->getResult());
} else {
    print_r($zapisz->getLastError());
}
/**
 * Samples for Dodaj ServiceType
 */
$dodaj = new \ServiceType\Dodaj($options);
/**
 * Sample call for dodajKlienta operation/method
 */
if ($dodaj->dodajKlienta(new \StructType\DodajKlienta()) !== false) {
    print_r($dodaj->getResult());
} else {
    print_r($dodaj->getLastError());
}
/**
 * Sample call for dodajZlecenie operation/method
 */
if ($dodaj->dodajZlecenie(new \StructType\DodajZlecenie()) !== false) {
    print_r($dodaj->getResult());
} else {
    print_r($dodaj->getLastError());
}
/**
 * Sample call for dodajZlecenieV2 operation/method
 */
if ($dodaj->dodajZlecenieV2(new \StructType\DodajZlecenieV2()) !== false) {
    print_r($dodaj->getResult());
} else {
    print_r($dodaj->getLastError());
}
/**
 * Samples for Edytuj ServiceType
 */
$edytuj = new \ServiceType\Edytuj($options);
/**
 * Sample call for edytujKlienta operation/method
 */
if ($edytuj->edytujKlienta(new \StructType\EdytujKlienta()) !== false) {
    print_r($edytuj->getResult());
} else {
    print_r($edytuj->getLastError());
}
/**
 * Sample call for edytujList operation/method
 */
if ($edytuj->edytujList(new \StructType\EdytujList()) !== false) {
    print_r($edytuj->getResult());
} else {
    print_r($edytuj->getLastError());
}
/**
 * Samples for Szukaj ServiceType
 */
$szukaj = new \ServiceType\Szukaj($options);
/**
 * Sample call for szukajKlienta operation/method
 */
if ($szukaj->szukajKlienta(new \StructType\SzukajKlienta()) !== false) {
    print_r($szukaj->getResult());
} else {
    print_r($szukaj->getLastError());
}
/**
 * Samples for Usun ServiceType
 */
$usun = new \ServiceType\Usun($options);
/**
 * Sample call for usunKlienta operation/method
 */
if ($usun->usunKlienta(new \StructType\UsunKlienta()) !== false) {
    print_r($usun->getResult());
} else {
    print_r($usun->getLastError());
}
/**
 * Samples for Potwierdz ServiceType
 */
$potwierdz = new \ServiceType\Potwierdz($options);
/**
 * Sample call for potwierdzZbiorStatusow operation/method
 */
if ($potwierdz->potwierdzZbiorStatusow(new \StructType\PotwierdzZbiorStatusow()) !== false) {
    print_r($potwierdz->getResult());
} else {
    print_r($potwierdz->getLastError());
}
/**
 * Samples for Anuluj ServiceType
 */
$anuluj = new \ServiceType\Anuluj($options);
/**
 * Sample call for anulujZlecenie operation/method
 */
if ($anuluj->anulujZlecenie(new \StructType\AnulujZlecenie()) !== false) {
    print_r($anuluj->getResult());
} else {
    print_r($anuluj->getLastError());
}
