<?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 => 'http://www.dalida.com.tr/Servis/SiparisServis.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 => 'http://www.dalida.com.tr/Servis/SiparisServis.svc?wsdl',
    \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP => ClassMap::get(),
);
/**
 * Samples for Select ServiceType
 */
$select = new \ServiceType\Select($options);
/**
 * Sample call for SelectSiparis operation/method
 */
if ($select->SelectSiparis(new \StructType\SelectSiparis()) !== false) {
    print_r($select->getResult());
} else {
    print_r($select->getLastError());
}
/**
 * Sample call for SelectSiparisOdeme operation/method
 */
if ($select->SelectSiparisOdeme(new \StructType\SelectSiparisOdeme()) !== false) {
    print_r($select->getResult());
} else {
    print_r($select->getLastError());
}
/**
 * Sample call for SelectCariOdeme operation/method
 */
if ($select->SelectCariOdeme(new \StructType\SelectCariOdeme()) !== false) {
    print_r($select->getResult());
} else {
    print_r($select->getLastError());
}
/**
 * Sample call for SelectSiparisUrun operation/method
 */
if ($select->SelectSiparisUrun(new \StructType\SelectSiparisUrun()) !== false) {
    print_r($select->getResult());
} else {
    print_r($select->getLastError());
}
/**
 * Sample call for SelectSepet operation/method
 */
if ($select->SelectSepet(new \StructType\SelectSepet()) !== false) {
    print_r($select->getResult());
} else {
    print_r($select->getLastError());
}
/**
 * Sample call for SelectSiparisUrunDurumlari operation/method
 */
if ($select->SelectSiparisUrunDurumlari(new \StructType\SelectSiparisUrunDurumlari()) !== false) {
    print_r($select->getResult());
} else {
    print_r($select->getLastError());
}
/**
 * Sample call for SelectSiparisKargoPaket operation/method
 */
if ($select->SelectSiparisKargoPaket(new \StructType\SelectSiparisKargoPaket()) !== false) {
    print_r($select->getResult());
} else {
    print_r($select->getLastError());
}
/**
 * Sample call for SelectWebSepet operation/method
 */
if ($select->SelectWebSepet(new \StructType\SelectWebSepet()) !== false) {
    print_r($select->getResult());
} else {
    print_r($select->getLastError());
}
/**
 * Samples for Save ServiceType
 */
$save = new \ServiceType\Save($options);
/**
 * Sample call for SaveSiparis operation/method
 */
if ($save->SaveSiparis(new \StructType\SaveSiparis()) !== false) {
    print_r($save->getResult());
} else {
    print_r($save->getLastError());
}
/**
 * Sample call for SaveKargoTakipNo operation/method
 */
if ($save->SaveKargoTakipNo(new \StructType\SaveKargoTakipNo()) !== false) {
    print_r($save->getResult());
} else {
    print_r($save->getLastError());
}
/**
 * Sample call for SaveSiparisKargoPaket operation/method
 */
if ($save->SaveSiparisKargoPaket(new \StructType\SaveSiparisKargoPaket()) !== false) {
    print_r($save->getResult());
} else {
    print_r($save->getLastError());
}
/**
 * Sample call for SaveSiparisKargoPaketKargoTakipNo operation/method
 */
if ($save->SaveSiparisKargoPaketKargoTakipNo(new \StructType\SaveSiparisKargoPaketKargoTakipNo()) !== false) {
    print_r($save->getResult());
} else {
    print_r($save->getLastError());
}
/**
 * Samples for Set ServiceType
 */
$set = new \ServiceType\Set($options);
/**
 * Sample call for SetSiparisAktarildi operation/method
 */
if ($set->SetSiparisAktarildi(new \StructType\SetSiparisAktarildi()) !== false) {
    print_r($set->getResult());
} else {
    print_r($set->getLastError());
}
/**
 * Sample call for SetSiparisAktarildiIptal operation/method
 */
if ($set->SetSiparisAktarildiIptal(new \StructType\SetSiparisAktarildiIptal()) !== false) {
    print_r($set->getResult());
} else {
    print_r($set->getLastError());
}
/**
 * Sample call for SetSiparisKargoyaVerildi operation/method
 */
if ($set->SetSiparisKargoyaVerildi(new \StructType\SetSiparisKargoyaVerildi()) !== false) {
    print_r($set->getResult());
} else {
    print_r($set->getLastError());
}
/**
 * Sample call for SetSiparisTeslimEdildi operation/method
 */
if ($set->SetSiparisTeslimEdildi(new \StructType\SetSiparisTeslimEdildi()) !== false) {
    print_r($set->getResult());
} else {
    print_r($set->getLastError());
}
/**
 * Sample call for SetFaturaNo operation/method
 */
if ($set->SetFaturaNo(new \StructType\SetFaturaNo()) !== false) {
    print_r($set->getResult());
} else {
    print_r($set->getLastError());
}
/**
 * Sample call for SetSiparisDurum operation/method
 */
if ($set->SetSiparisDurum(new \StructType\SetSiparisDurum()) !== false) {
    print_r($set->getResult());
} else {
    print_r($set->getLastError());
}
/**
 * Sample call for SetSiparisUrunDurum operation/method
 */
if ($set->SetSiparisUrunDurum(new \StructType\SetSiparisUrunDurum()) !== false) {
    print_r($set->getResult());
} else {
    print_r($set->getLastError());
}
/**
 * Sample call for SetSepetKampanya operation/method
 */
if ($set->SetSepetKampanya(new \StructType\SetSepetKampanya()) !== false) {
    print_r($set->getResult());
} else {
    print_r($set->getLastError());
}
/**
 * Samples for Hediye ServiceType
 */
$hediye = new \ServiceType\Hediye($options);
/**
 * Sample call for HediyeCekiUygula operation/method
 */
if ($hediye->HediyeCekiUygula(new \StructType\HediyeCekiUygula()) !== false) {
    print_r($hediye->getResult());
} else {
    print_r($hediye->getLastError());
}
/**
 * Samples for Get ServiceType
 */
$get = new \ServiceType\Get($options);
/**
 * Sample call for GetKargoSecenek operation/method
 */
if ($get->GetKargoSecenek(new \StructType\GetKargoSecenek()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetSepet operation/method
 */
if ($get->GetSepet(new \StructType\GetSepet()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Sample call for GetOdemeTipleri operation/method
 */
if ($get->GetOdemeTipleri(new \StructType\GetOdemeTipleri()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}
/**
 * Samples for Create ServiceType
 */
$create = new \ServiceType\Create($options);
/**
 * Sample call for CreateSepet operation/method
 */
if ($create->CreateSepet(new \StructType\CreateSepet()) !== false) {
    print_r($create->getResult());
} else {
    print_r($create->getLastError());
}
/**
 * Samples for Update ServiceType
 */
$update = new \ServiceType\Update($options);
/**
 * Sample call for UpdateSepet operation/method
 */
if ($update->UpdateSepet(new \StructType\UpdateSepet()) !== false) {
    print_r($update->getResult());
} else {
    print_r($update->getLastError());
}
