<?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 => 'http://efatura.uyumsoft.com.tr/Services/BasicIntegration?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 => 'http://efatura.uyumsoft.com.tr/Services/BasicIntegration?wsdl',
    \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP => \Novadan\Uyumsoft\ClassMap::get(),
);
/**
 * Samples for Get ServiceType
 */
$get = new \Novadan\Uyumsoft\ServiceType\Get($options);
/**
 * Sample call for GetSystemDate operation/method
 */
if ($get->GetSystemDate(new \Novadan\Uyumsoft\StructType\GetSystemDate()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetSystemDateWithFormat operation/method
 */
if ($get->GetSystemDateWithFormat(new \Novadan\Uyumsoft\StructType\GetSystemDateWithFormat()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetEInvoiceUsers operation/method
 */
if ($get->GetEInvoiceUsers(new \Novadan\Uyumsoft\StructType\GetEInvoiceUsers()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetUserAliasses operation/method
 */
if ($get->GetUserAliasses(new \Novadan\Uyumsoft\StructType\GetUserAliasses()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetXsltView operation/method
 */
if ($get->GetXsltView(new \Novadan\Uyumsoft\StructType\GetXsltView()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetInboxInvoices operation/method
 */
if ($get->GetInboxInvoices(new \Novadan\Uyumsoft\StructType\GetInboxInvoices()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetInboxInvoiceList operation/method
 */
if ($get->GetInboxInvoiceList(new \Novadan\Uyumsoft\StructType\GetInboxInvoiceList()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetInboxInvoice operation/method
 */
if ($get->GetInboxInvoice(new \Novadan\Uyumsoft\StructType\GetInboxInvoice()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetOutboxInvoices operation/method
 */
if ($get->GetOutboxInvoices(new \Novadan\Uyumsoft\StructType\GetOutboxInvoices()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetOutboxInvoiceList operation/method
 */
if ($get->GetOutboxInvoiceList(new \Novadan\Uyumsoft\StructType\GetOutboxInvoiceList()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetOutboxInvoice operation/method
 */
if ($get->GetOutboxInvoice(new \Novadan\Uyumsoft\StructType\GetOutboxInvoice()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetOutboxInvoicesData operation/method
 */
if ($get->GetOutboxInvoicesData(new \Novadan\Uyumsoft\StructType\GetOutboxInvoicesData()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetOutboxInvoiceData operation/method
 */
if ($get->GetOutboxInvoiceData(new \Novadan\Uyumsoft\StructType\GetOutboxInvoiceData()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetInboxInvoicesData operation/method
 */
if ($get->GetInboxInvoicesData(new \Novadan\Uyumsoft\StructType\GetInboxInvoicesData()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetInboxInvoiceData operation/method
 */
if ($get->GetInboxInvoiceData(new \Novadan\Uyumsoft\StructType\GetInboxInvoiceData()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetInboxInvoiceView operation/method
 */
if ($get->GetInboxInvoiceView(new \Novadan\Uyumsoft\StructType\GetInboxInvoiceView()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetOutboxInvoiceView operation/method
 */
if ($get->GetOutboxInvoiceView(new \Novadan\Uyumsoft\StructType\GetOutboxInvoiceView()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetOutboxInvoiceResponseView operation/method
 */
if ($get->GetOutboxInvoiceResponseView(new \Novadan\Uyumsoft\StructType\GetOutboxInvoiceResponseView()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetInboxInvoiceStatusWithLogs operation/method
 */
if ($get->GetInboxInvoiceStatusWithLogs(new \Novadan\Uyumsoft\StructType\GetInboxInvoiceStatusWithLogs()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetOutboxInvoiceStatusWithLogs operation/method
 */
if ($get->GetOutboxInvoiceStatusWithLogs(new \Novadan\Uyumsoft\StructType\GetOutboxInvoiceStatusWithLogs()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetInboxInvoicePdf operation/method
 */
if ($get->GetInboxInvoicePdf(new \Novadan\Uyumsoft\StructType\GetInboxInvoicePdf()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetOutboxInvoicePdf operation/method
 */
if ($get->GetOutboxInvoicePdf(new \Novadan\Uyumsoft\StructType\GetOutboxInvoicePdf()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetSystemUsersCompressedList operation/method
 */
if ($get->GetSystemUsersCompressedList(new \Novadan\Uyumsoft\StructType\GetSystemUsersCompressedList()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetSystemUsersCompressedListOld operation/method
 */
if ($get->GetSystemUsersCompressedListOld(new \Novadan\Uyumsoft\StructType\GetSystemUsersCompressedListOld()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetInvoiceEnvelope operation/method
 */
if ($get->GetInvoiceEnvelope(new \Novadan\Uyumsoft\StructType\GetInvoiceEnvelope()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetSummaryReport operation/method
 */
if ($get->GetSummaryReport(new \Novadan\Uyumsoft\StructType\GetSummaryReport()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Samples for Is ServiceType
 */
$is = new \Novadan\Uyumsoft\ServiceType\Is($options);
/**
 * Sample call for IsEInvoiceUser operation/method
 */
if ($is->IsEInvoiceUser(new \Novadan\Uyumsoft\StructType\IsEInvoiceUser()) !== false) {
    print_r($is->getResult());
} else {
    print_r($is->getLastError());
}
/**
 * Samples for Filter ServiceType
 */
$filter = new \Novadan\Uyumsoft\ServiceType\Filter($options);
/**
 * Sample call for FilterEInvoiceUsers operation/method
 */
if ($filter->FilterEInvoiceUsers(new \Novadan\Uyumsoft\StructType\FilterEInvoiceUsers()) !== false) {
    print_r($filter->getResult());
} else {
    print_r($filter->getLastError());
}
/**
 * Samples for Set ServiceType
 */
$set = new \Novadan\Uyumsoft\ServiceType\Set($options);
/**
 * Sample call for SetXsltView operation/method
 */
if ($set->SetXsltView(new \Novadan\Uyumsoft\StructType\SetXsltView()) !== false) {
    print_r($set->getResult());
} else {
    print_r($set->getLastError());
}
/**
 * Sample call for SetInvoicesTaken operation/method
 */
if ($set->SetInvoicesTaken(new \Novadan\Uyumsoft\StructType\SetInvoicesTaken()) !== false) {
    print_r($set->getResult());
} else {
    print_r($set->getLastError());
}
/**
 * Samples for Validate ServiceType
 */
$validate = new \Novadan\Uyumsoft\ServiceType\Validate($options);
/**
 * Sample call for ValidateInvoice operation/method
 */
if ($validate->ValidateInvoice(new \Novadan\Uyumsoft\StructType\ValidateInvoice()) !== false) {
    print_r($validate->getResult());
} else {
    print_r($validate->getLastError());
}
/**
 * Samples for Query ServiceType
 */
$query = new \Novadan\Uyumsoft\ServiceType\Query($options);
/**
 * Sample call for QueryInboxInvoiceStatus operation/method
 */
if ($query->QueryInboxInvoiceStatus(new \Novadan\Uyumsoft\StructType\QueryInboxInvoiceStatus()) !== false) {
    print_r($query->getResult());
} else {
    print_r($query->getLastError());
}
/**
 * Sample call for QueryDocumentResponseStatus operation/method
 */
if ($query->QueryDocumentResponseStatus(new \Novadan\Uyumsoft\StructType\QueryDocumentResponseStatus()) !== false) {
    print_r($query->getResult());
} else {
    print_r($query->getLastError());
}
/**
 * Sample call for QueryOutboxInvoiceStatus operation/method
 */
if ($query->QueryOutboxInvoiceStatus(new \Novadan\Uyumsoft\StructType\QueryOutboxInvoiceStatus()) !== false) {
    print_r($query->getResult());
} else {
    print_r($query->getLastError());
}
/**
 * Sample call for QueryInvoiceGtbResponses operation/method
 */
if ($query->QueryInvoiceGtbResponses(new \Novadan\Uyumsoft\StructType\QueryInvoiceGtbResponses()) !== false) {
    print_r($query->getResult());
} else {
    print_r($query->getLastError());
}
/**
 * Samples for Send ServiceType
 */
$send = new \Novadan\Uyumsoft\ServiceType\Send($options);
/**
 * Sample call for SendDocumentResponse operation/method
 */
if ($send->SendDocumentResponse(new \Novadan\Uyumsoft\StructType\SendDocumentResponse()) !== false) {
    print_r($send->getResult());
} else {
    print_r($send->getLastError());
}
/**
 * Sample call for SendInvoice operation/method
 */
if ($send->SendInvoice(new \Novadan\Uyumsoft\StructType\SendInvoice()) !== false) {
    print_r($send->getResult());
} else {
    print_r($send->getLastError());
}
/**
 * Sample call for SendDraft operation/method
 */
if ($send->SendDraft(new \Novadan\Uyumsoft\StructType\SendDraft()) !== false) {
    print_r($send->getResult());
} else {
    print_r($send->getLastError());
}
/**
 * Samples for Save ServiceType
 */
$save = new \Novadan\Uyumsoft\ServiceType\Save($options);
/**
 * Sample call for SaveAsDraft operation/method
 */
if ($save->SaveAsDraft(new \Novadan\Uyumsoft\StructType\SaveAsDraft()) !== false) {
    print_r($save->getResult());
} else {
    print_r($save->getLastError());
}
/**
 * Samples for Compressed ServiceType
 */
$compressed = new \Novadan\Uyumsoft\ServiceType\Compressed($options);
/**
 * Sample call for CompressedSaveAsDraft operation/method
 */
if ($compressed->CompressedSaveAsDraft(new \Novadan\Uyumsoft\StructType\CompressedSaveAsDraft()) !== false) {
    print_r($compressed->getResult());
} else {
    print_r($compressed->getLastError());
}
/**
 * Sample call for CompressedSendInvoice operation/method
 */
if ($compressed->CompressedSendInvoice(new \Novadan\Uyumsoft\StructType\CompressedSendInvoice()) !== false) {
    print_r($compressed->getResult());
} else {
    print_r($compressed->getLastError());
}
/**
 * Samples for Cancel ServiceType
 */
$cancel = new \Novadan\Uyumsoft\ServiceType\Cancel($options);
/**
 * Sample call for CancelDraft operation/method
 */
if ($cancel->CancelDraft(new \Novadan\Uyumsoft\StructType\CancelDraft()) !== false) {
    print_r($cancel->getResult());
} else {
    print_r($cancel->getLastError());
}
/**
 * Sample call for CancelEArchiveInvoice operation/method
 */
if ($cancel->CancelEArchiveInvoice(new \Novadan\Uyumsoft\StructType\CancelEArchiveInvoice()) !== false) {
    print_r($cancel->getResult());
} else {
    print_r($cancel->getLastError());
}
/**
 * Samples for Retry ServiceType
 */
$retry = new \Novadan\Uyumsoft\ServiceType\Retry($options);
/**
 * Sample call for RetrySendInvoices operation/method
 */
if ($retry->RetrySendInvoices(new \Novadan\Uyumsoft\StructType\RetrySendInvoices()) !== false) {
    print_r($retry->getResult());
} else {
    print_r($retry->getLastError());
}
/**
 * Samples for Clone ServiceType
 */
$clone = new \Novadan\Uyumsoft\ServiceType\_Clone($options);
/**
 * Sample call for CloneInvoices operation/method
 */
if ($clone->CloneInvoices(new \Novadan\Uyumsoft\StructType\CloneInvoices()) !== false) {
    print_r($clone->getResult());
} else {
    print_r($clone->getLastError());
}
/**
 * Samples for Change ServiceType
 */
$change = new \Novadan\Uyumsoft\ServiceType\Change($options);
/**
 * Sample call for ChangeInvoiceArchiveStatus operation/method
 */
if ($change->ChangeInvoiceArchiveStatus(new \Novadan\Uyumsoft\StructType\ChangeInvoiceArchiveStatus()) !== false) {
    print_r($change->getResult());
} else {
    print_r($change->getLastError());
}
/**
 * Samples for Import ServiceType
 */
$import = new \Novadan\Uyumsoft\ServiceType\Import($options);
/**
 * Sample call for ImportExistingInvoice operation/method
 */
if ($import->ImportExistingInvoice(new \Novadan\Uyumsoft\StructType\ImportExistingInvoice()) !== false) {
    print_r($import->getResult());
} else {
    print_r($import->getLastError());
}
/**
 * Samples for Queue ServiceType
 */
$queue = new \Novadan\Uyumsoft\ServiceType\Queue($options);
/**
 * Sample call for QueueInvoiceNotification operation/method
 */
if ($queue->QueueInvoiceNotification(new \Novadan\Uyumsoft\StructType\QueueInvoiceNotification()) !== false) {
    print_r($queue->getResult());
} else {
    print_r($queue->getLastError());
}
/**
 * Samples for Test ServiceType
 */
$test = new \Novadan\Uyumsoft\ServiceType\Test($options);
/**
 * Sample call for TestConnection operation/method
 */
if ($test->TestConnection(new \Novadan\Uyumsoft\StructType\TestConnection()) !== false) {
    print_r($test->getResult());
} else {
    print_r($test->getLastError());
}
/**
 * Samples for Who ServiceType
 */
$who = new \Novadan\Uyumsoft\ServiceType\Who($options);
/**
 * Sample call for WhoAmI operation/method
 */
if ($who->WhoAmI(new \Novadan\Uyumsoft\StructType\WhoAmI()) !== false) {
    print_r($who->getResult());
} else {
    print_r($who->getLastError());
}
/**
 * Samples for Move ServiceType
 */
$move = new \Novadan\Uyumsoft\ServiceType\Move($options);
/**
 * Sample call for MoveToDraftStatus operation/method
 */
if ($move->MoveToDraftStatus(new \Novadan\Uyumsoft\StructType\MoveToDraftStatus()) !== false) {
    print_r($move->getResult());
} else {
    print_r($move->getLastError());
}
/**
 * Samples for Transfer ServiceType
 */
$transfer = new \Novadan\Uyumsoft\ServiceType\Transfer($options);
/**
 * Sample call for TransferInboxInvoiceToAnotherBranch operation/method
 */
if ($transfer->TransferInboxInvoiceToAnotherBranch(new \Novadan\Uyumsoft\StructType\TransferInboxInvoiceToAnotherBranch()) !== false) {
    print_r($transfer->getResult());
} else {
    print_r($transfer->getLastError());
}
