<?php
/* Create a class for your webservice structure, in this case: Contact */
class SHA2B64{
    function SHA2B64($metin)
    {
        $this->Data = $metin;
        $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 SHA2B64($_POST['metin']);
/* Set your parameters for the request */
    $response = $client->SHA2B64($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="SHA2B64.php" method="post" enctype="multipart/form-data" >
    <section role="form" class="section-form">
        <legend class="center-align">
            <h3>SHA2B64 Metodu</h3>
        </legend>
        <div>
            <label>Çevrilecek Metin</label>
            <input type="text" class="Text" name="metin" />
        </div>
        <hr />
        <div class="center-align">
            <input class="Submit" type="submit" name="submit" id="submit" class="submit-class" value="SHA2B64 Çalıştır" />
        </div>
    </section>
    <div class="clearfx"></div>
</form>