/**
* 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 Purchase ServiceType
*/
$purchase = new \ServiceType\Purchase($options);
/**
* Sample call for purchasePOS operation/method
*/
if ($purchase->purchasePOS(new \StructType\PurchasePOS()) !== false) {
print_r($purchase->getResult());
} else {
print_r($purchase->getLastError());
}
/**
* Sample call for purchaseWebshop operation/method
*/
if ($purchase->purchaseWebshop(new \StructType\PurchaseWebshop()) !== false) {
print_r($purchase->getResult());
} else {
print_r($purchase->getLastError());
}
/**
* Samples for Reversal ServiceType
*/
$reversal = new \ServiceType\Reversal($options);
/**
* Sample call for reversalMerchantTranId operation/method
*/
if ($reversal->reversalMerchantTranId(new \StructType\ReversalMerchantTranId()) !== false) {
print_r($reversal->getResult());
} else {
print_r($reversal->getLastError());
}
/**
* Sample call for reversalIssuerTranId operation/method
*/
if ($reversal->reversalIssuerTranId(new \StructType\ReversalIssuerTranId()) !== false) {
print_r($reversal->getResult());
} else {
print_r($reversal->getLastError());
}
/**
* Samples for Get ServiceType
*/
$get = new \ServiceType\Get($options);
/**
* Sample call for getResponseMerchantTranId operation/method
*/
if ($get->getResponseMerchantTranId(new \StructType\GetResponseMerchantTranId()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for getResponseIssuerTranId operation/method
*/
if ($get->getResponseIssuerTranId(new \StructType\GetResponseIssuerTranId()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
Don't be shy, don't hesitate to contact us for any subject, we'll be glad to help.
This platform is provided to give developpers and non developpers a way to easily consume SOAP Web Services or share their own SOAP Web Services with extra features powered by the platform.
© 2025 Providr.IO