<?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 => 'https://serviceteszt.kartyakozpont.hu/EngedelykeroService.svc?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://serviceteszt.kartyakozpont.hu/EngedelykeroService.svc?wsdl',
    \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP => ClassMap::get(),
);
/**
 * Samples for Dummy ServiceType
 */
$dummy = new \ServiceType\Dummy($options);
/**
 * Sample call for Dummy operation/method
 */
if ($dummy->Dummy(new \StructType\Dummy()) !== false) {
    print_r($dummy->getResult());
} else {
    print_r($dummy->getLastError());
}
/**
 * Samples for Elfogadohely ServiceType
 */
$elfogadohely = new \ServiceType\Elfogadohely($options);
/**
 * Sample call for ElfogadohelyKafeteriaElemei operation/method
 */
if ($elfogadohely->ElfogadohelyKafeteriaElemei(new \StructType\ElfogadohelyKafeteriaElemei()) !== false) {
    print_r($elfogadohely->getResult());
} else {
    print_r($elfogadohely->getLastError());
}
/**
 * Samples for Elorefizetesi ServiceType
 */
$elorefizetesi = new \ServiceType\Elorefizetesi($options);
/**
 * Sample call for ElorefizetesiIgenyLeadasa operation/method
 */
if ($elorefizetesi->ElorefizetesiIgenyLeadasa(new \StructType\ElorefizetesiIgenyLeadasa()) !== false) {
    print_r($elorefizetesi->getResult());
} else {
    print_r($elorefizetesi->getLastError());
}
/**
 * Samples for Engedelykeres ServiceType
 */
$engedelykeres = new \ServiceType\Engedelykeres($options);
/**
 * Sample call for EngedelykeresElfogadohely operation/method
 */
if ($engedelykeres->EngedelykeresElfogadohely(new \StructType\EngedelykeresElfogadohely()) !== false) {
    print_r($engedelykeres->getResult());
} else {
    print_r($engedelykeres->getLastError());
}
/**
 * Sample call for EngedelykeresElfogadohelyEgy operation/method
 */
if ($engedelykeres->EngedelykeresElfogadohelyEgy(new \StructType\EngedelykeresElfogadohelyEgy()) !== false) {
    print_r($engedelykeres->getResult());
} else {
    print_r($engedelykeres->getLastError());
}
/**
 * Sample call for EngedelykeresElfogadohelyWebshop operation/method
 */
if ($engedelykeres->EngedelykeresElfogadohelyWebshop(new \StructType\EngedelykeresElfogadohelyWebshop()) !== false) {
    print_r($engedelykeres->getResult());
} else {
    print_r($engedelykeres->getLastError());
}
/**
 * Sample call for EngedelykeresElfogadohelyWebshopEgy operation/method
 */
if ($engedelykeres->EngedelykeresElfogadohelyWebshopEgy(new \StructType\EngedelykeresElfogadohelyWebshopEgy()) !== false) {
    print_r($engedelykeres->getResult());
} else {
    print_r($engedelykeres->getLastError());
}
/**
 * Samples for Sztorno ServiceType
 */
$sztorno = new \ServiceType\Sztorno($options);
/**
 * Sample call for Sztorno operation/method
 */
if ($sztorno->Sztorno(new \StructType\Sztorno()) !== false) {
    print_r($sztorno->getResult());
} else {
    print_r($sztorno->getLastError());
}
/**
 * Samples for Tranzakcio ServiceType
 */
$tranzakcio = new \ServiceType\Tranzakcio($options);
/**
 * Sample call for TranzakcioAdatok operation/method
 */
if ($tranzakcio->TranzakcioAdatok(new \StructType\TranzakcioAdatok()) !== false) {
    print_r($tranzakcio->getResult());
} else {
    print_r($tranzakcio->getLastError());
}
/**
 * Sample call for TranzakcioAdatokEgy operation/method
 */
if ($tranzakcio->TranzakcioAdatokEgy(new \StructType\TranzakcioAdatokEgy()) !== false) {
    print_r($tranzakcio->getResult());
} else {
    print_r($tranzakcio->getLastError());
}
/**
 * Samples for Purchasemobilepos ServiceType
 */
$purchasemobilepos = new \ServiceType\Purchasemobilepos($options);
/**
 * Sample call for purchase_mobilepos operation/method
 */
if ($purchasemobilepos->purchase_mobilepos(new \StructType\Purchase_mobilepos()) !== false) {
    print_r($purchasemobilepos->getResult());
} else {
    print_r($purchasemobilepos->getLastError());
}
/**
 * Samples for Purchasewebshop ServiceType
 */
$purchasewebshop = new \ServiceType\Purchasewebshop($options);
/**
 * Sample call for purchase_webshop operation/method
 */
if ($purchasewebshop->purchase_webshop(new \StructType\Purchase_webshop()) !== false) {
    print_r($purchasewebshop->getResult());
} else {
    print_r($purchasewebshop->getLastError());
}
/**
 * Samples for Reversalmerchanttranid ServiceType
 */
$reversalmerchanttranid = new \ServiceType\Reversalmerchanttranid($options);
/**
 * Sample call for reversal_merchanttran_id operation/method
 */
if ($reversalmerchanttranid->reversal_merchanttran_id(new \StructType\Reversal_merchanttran_id()) !== false) {
    print_r($reversalmerchanttranid->getResult());
} else {
    print_r($reversalmerchanttranid->getLastError());
}
/**
 * Samples for Reversalissuertranid ServiceType
 */
$reversalissuertranid = new \ServiceType\Reversalissuertranid($options);
/**
 * Sample call for reversal_issuertran_id operation/method
 */
if ($reversalissuertranid->reversal_issuertran_id(new \StructType\Reversal_issuertran_id()) !== false) {
    print_r($reversalissuertranid->getResult());
} else {
    print_r($reversalissuertranid->getLastError());
}
/**
 * Samples for Getresponsemerchanttranid ServiceType
 */
$getresponsemerchanttranid = new \ServiceType\Getresponsemerchanttranid($options);
/**
 * Sample call for getresponse_merchanttran_id operation/method
 */
if ($getresponsemerchanttranid->getresponse_merchanttran_id(new \StructType\Getresponse_merchanttran_id()) !== false) {
    print_r($getresponsemerchanttranid->getResult());
} else {
    print_r($getresponsemerchanttranid->getLastError());
}
/**
 * Samples for Getresponseissuertranid ServiceType
 */
$getresponseissuertranid = new \ServiceType\Getresponseissuertranid($options);
/**
 * Sample call for getresponse_issuertran_id operation/method
 */
if ($getresponseissuertranid->getresponse_issuertran_id(new \StructType\Getresponse_issuertran_id()) !== false) {
    print_r($getresponseissuertranid->getResult());
} else {
    print_r($getresponseissuertranid->getLastError());
}
