<?php
class TP_Islem_Dekont_Gonder{
    function TP_Islem_Dekont_Gonder($guid, $dekont, $email)
    {
        $this->GUID = $guid;
        $this->Dekont_ID = $dekont;
        $this->E_Posta = $email;
        $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_Dekont_Gonder($_POST['guid'], $_POST['dekont'], $_POST['email']);
    /* Set your parameters for the request */
    $response = $client->TP_Islem_Dekont_Gonder($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="dekontgonder.php" method="post" enctype="multipart/form-data" >
    <section role="form" class="section-form">
        <legend class="center-align">
            <h3>TP_Islem_Dekont_Gonder 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="">Dekont ID:</label>
            <input type="text" class="text-input" name="dekont" />
        </div>
        <hr />
        <div class="center-align">
            <label for="">Email:</label>
            <input type="email" class="text-input" name="email" />
        </div>
        <hr />
        <div class="center-align">
            <input class="Submit" type="submit" name="submit" id="submit" class="submit-class" value="Dekont Gönder" />
        </div>
    </section>
    <div class="clearfx"></div>
</form>