<?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 => 'main.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 => 'main.wsdl',
    \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP => ClassMap::get(),
);
/**
 * Samples for Gettransstatus ServiceType
 */
$gettransstatus = new \ServiceType\Gettransstatus($options);
/**
 * Sample call for get_trans_status operation/method
 */
if ($gettransstatus->get_trans_status(new \StructType\Get_trans_status()) !== false) {
    print_r($gettransstatus->getResult());
} else {
    print_r($gettransstatus->getLastError());
}
/**
 * Samples for Validateairtimeaccount ServiceType
 */
$validateairtimeaccount = new \ServiceType\Validateairtimeaccount($options);
/**
 * Sample call for validate_airtime_account operation/method
 */
if ($validateairtimeaccount->validate_airtime_account(new \StructType\Validate_airtime_account()) !== false) {
    print_r($validateairtimeaccount->getResult());
} else {
    print_r($validateairtimeaccount->getLastError());
}
/**
 * Samples for Cancelvoucher ServiceType
 */
$cancelvoucher = new \ServiceType\Cancelvoucher($options);
/**
 * Sample call for cancel_voucher operation/method
 */
if ($cancelvoucher->cancel_voucher(new \StructType\Cancel_voucher()) !== false) {
    print_r($cancelvoucher->getResult());
} else {
    print_r($cancelvoucher->getLastError());
}
/**
 * Samples for Bankremitlog ServiceType
 */
$bankremitlog = new \ServiceType\Bankremitlog($options);
/**
 * Sample call for bank_remit_log operation/method
 */
if ($bankremitlog->bank_remit_log(new \StructType\Bank_remit_log()) !== false) {
    print_r($bankremitlog->getResult());
} else {
    print_r($bankremitlog->getLastError());
}
/**
 * Samples for Getpartners ServiceType
 */
$getpartners = new \ServiceType\Getpartners($options);
/**
 * Sample call for get_partners operation/method
 */
if ($getpartners->get_partners(new \StructType\Get_partners()) !== false) {
    print_r($getpartners->getResult());
} else {
    print_r($getpartners->getLastError());
}
/**
 * Samples for Getvoucherstatus ServiceType
 */
$getvoucherstatus = new \ServiceType\Getvoucherstatus($options);
/**
 * Sample call for get_voucher_status operation/method
 */
if ($getvoucherstatus->get_voucher_status(new \StructType\Get_voucher_status()) !== false) {
    print_r($getvoucherstatus->getResult());
} else {
    print_r($getvoucherstatus->getLastError());
}
/**
 * Samples for Canceltrans ServiceType
 */
$canceltrans = new \ServiceType\Canceltrans($options);
/**
 * Sample call for cancel_trans operation/method
 */
if ($canceltrans->cancel_trans(new \StructType\Cancel_trans()) !== false) {
    print_r($canceltrans->getResult());
} else {
    print_r($canceltrans->getLastError());
}
/**
 * Samples for Getbanks ServiceType
 */
$getbanks = new \ServiceType\Getbanks($options);
/**
 * Sample call for get_banks operation/method
 */
if ($getbanks->get_banks(new \StructType\Get_banks()) !== false) {
    print_r($getbanks->getResult());
} else {
    print_r($getbanks->getLastError());
}
/**
 * Samples for Mmtranslog ServiceType
 */
$mmtranslog = new \ServiceType\Mmtranslog($options);
/**
 * Sample call for mm_trans_log operation/method
 */
if ($mmtranslog->mm_trans_log(new \StructType\Mm_trans_log()) !== false) {
    print_r($mmtranslog->getResult());
} else {
    print_r($mmtranslog->getLastError());
}
/**
 * Samples for Transcom ServiceType
 */
$transcom = new \ServiceType\Transcom($options);
/**
 * Sample call for trans_com operation/method
 */
if ($transcom->trans_com(new \StructType\Trans_com()) !== false) {
    print_r($transcom->getResult());
} else {
    print_r($transcom->getLastError());
}
/**
 * Samples for Accountrequest ServiceType
 */
$accountrequest = new \ServiceType\Accountrequest($options);
/**
 * Sample call for account_request operation/method
 */
if ($accountrequest->account_request(new \StructType\Account_request()) !== false) {
    print_r($accountrequest->getResult());
} else {
    print_r($accountrequest->getLastError());
}
/**
 * Samples for Mmremitlog ServiceType
 */
$mmremitlog = new \ServiceType\Mmremitlog($options);
/**
 * Sample call for mm_remit_log operation/method
 */
if ($mmremitlog->mm_remit_log(new \StructType\Mm_remit_log()) !== false) {
    print_r($mmremitlog->getResult());
} else {
    print_r($mmremitlog->getLastError());
}
/**
 * Samples for Airtimetranslog ServiceType
 */
$airtimetranslog = new \ServiceType\Airtimetranslog($options);
/**
 * Sample call for airtime_trans_log operation/method
 */
if ($airtimetranslog->airtime_trans_log(new \StructType\Airtime_trans_log()) !== false) {
    print_r($airtimetranslog->getResult());
} else {
    print_r($airtimetranslog->getLastError());
}
/**
 * Samples for Validatebankaccount ServiceType
 */
$validatebankaccount = new \ServiceType\Validatebankaccount($options);
/**
 * Sample call for validate_bank_account operation/method
 */
if ($validatebankaccount->validate_bank_account(new \StructType\Validate_bank_account()) !== false) {
    print_r($validatebankaccount->getResult());
} else {
    print_r($validatebankaccount->getLastError());
}
/**
 * Samples for Getrate ServiceType
 */
$getrate = new \ServiceType\Getrate($options);
/**
 * Sample call for get_rate operation/method
 */
if ($getrate->get_rate(new \StructType\Get_rate()) !== false) {
    print_r($getrate->getResult());
} else {
    print_r($getrate->getLastError());
}
/**
 * Samples for Banktranslog ServiceType
 */
$banktranslog = new \ServiceType\Banktranslog($options);
/**
 * Sample call for bank_trans_log operation/method
 */
if ($banktranslog->bank_trans_log(new \StructType\Bank_trans_log()) !== false) {
    print_r($banktranslog->getResult());
} else {
    print_r($banktranslog->getLastError());
}
/**
 * Samples for Airtimetranscom ServiceType
 */
$airtimetranscom = new \ServiceType\Airtimetranscom($options);
/**
 * Sample call for airtime_trans_com operation/method
 */
if ($airtimetranscom->airtime_trans_com(new \StructType\Airtime_trans_com()) !== false) {
    print_r($airtimetranscom->getResult());
} else {
    print_r($airtimetranscom->getLastError());
}
