<?php
class TP_Islem_Iptal_Iade{
    function TP_Islem_Iptal_Iade($guid, $durum, $dekont)
    {
        $this->GUID = $guid;
        $this->Durum = $durum;
        $this->Dekont_ID = $dekont;
        $this->G = new G(10738, "test" , "test");
    }
}
class G {
    function G($cc,$cu,$cp)
    {
        $this->CLIENT_CODE = $cc;
        $this->CLIENT_USERNAME = $cu;
        $this->CLIENT_PASSWORD = $cp;
    }
}
if($_POST):
    /* Initialize webservice with your WSDL */
    $client = new SoapClient("https://dmzws.ew.com.tr/turkpos.ws/service_turkpos_test.asmx?wsdl");
    /* Fill your Contact Object */
    $nesne = new TP_Islem_Iptal_Iade($_POST['guid'], $_POST['durum'], $_POST['dekont']);
    /* Set your parameters for the request */
    $response = $client->TP_Islem_Iptal_Iade($nesne);
    var_dump($response);
endif;
?>
<style>
    .clearfx {
        clear: both;
    }
    .body {
        margin: 0 auto;
        padding: 50px 100px;
    }
    .center-align {
        text-align: center;
        margin: 0 auto;
    }
    .divbox {
        display: inline-block;
    }
    .text-input {
        width: 50%;
    }
    .submit-class {
        width="70%";
        height="30px";
    }
</style>
<form action="islemiade.php" method="post" enctype="multipart/form-data" >
    <section role="form" class="section-form">
        <legend class="center-align">
            <h3>TP_Islem_Iptal_Iade Metodu</h3>
        </legend>
        <div class="center-align">
            <label for="">Üye İşyerine ait Anahtar:</label>
            <input type="text" class="text-input" name="guid" />
        </div>
        <hr />
        <div class="center-align">
            <label for="durum-select">Durum:</label>
            <select id="durum-select" name="durum">
                <option value="İPTAL">İPTAL</option>
                <option value="İADE">İADE</option>
            </select>
        </div>
        <hr />
        <div class="center-align">
            <label for="">Dekont ID:</label>
            <input type="text" class="text-input" name="dekont" />
        </div>
        <hr />
        <div class="center-align">
            <input class="Submit" type="submit" name="submit" id="submit" class="submit-class" value="İşlem İade Çalıştır" />
        </div>
    </section>
    <div class="clearfx"></div>
</form>