<?php
/* Create a class for your webservice structure, in this case: Contact */
class TP_Ozel_Oran_SK_Guncelle{
    function TP_Ozel_Oran_SK_Guncelle($guid,$ozelOranSkId,$MO1,$MO2,$MO3,$MO4,$MO5,$MO6,$MO7,$MO8,$MO9,$MO10,$MO11,$MO12)
    {
        $this->GUID = $guid;
        $this->Ozel_Oran_SK_ID = $ozelOranSkId;
	    $this->MO_1 = $MO1;
	    $this->MO_2 = $MO2;
        $this->MO_3 = $MO3;
        $this->MO_4 = $MO4;
        $this->MO_5 = $MO5;
        $this->MO_6 = $MO6;
        $this->MO_7 = $MO7;
        $this->MO_8 = $MO8;
        $this->MO_9 = $MO9;
        $this->MO_10 = $MO10;
        $this->MO_11 = $MO11;
        $this->MO_12 = $MO12;
		$this->G = new G(15646, "TP10029813" , "C5288DC8521720E9");
		
    }
}
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_Ozel_Oran_SK_Guncelle($_POST['guid'],"2",$_POST['txbMO1'],$_POST['txbMO2'],$_POST['txbMO3'],$_POST['txbMO4'],$_POST['txbMO5'],$_POST['txbMO6'],$_POST['txbMO7'],$_POST['txbMO8'],$_POST['txbMO9'],$_POST['txbM10'],$_POST['txbM11'],$_POST['txbM12']);
    $response = $client->TP_Ozel_Oran_SK_Guncelle($nesne);
    $sonuc = $response->TP_Ozel_Oran_SK_GuncelleResult;
    var_dump($sonuc);
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="oranguncelle.php" method="post" enctype="multipart/form-data" >
    <section role="form" class="section-form">
        <legend class="center-align">
            <h3>TP_Ozel_Oran_SK_Guncelle Metodu</h3>
        </legend>
        <hr />
        <div class="center-align">
            <label for="">Üye İşyerine ait Anahtar:</label>
            <input type="text" class="text-input" name="guid" value="0c13d406-873b-403b-9c09-a5766840d98c" />
        </div>
        <div class="clearfx"></div>
        <hr />
        <div class="center-align">
            <div class="divbox">
                <label for="">MO 1:</label>
                <input type="text" class="text-input" name="txbMO1" />
            </div>
            <div class="divbox">
                <label for="">MO 2:</label>
                <input type="text" class="text-input" name="txbMO2" />
            </div>
            <div class="divbox">
                <label for="">MO 3:</label>
                <input type="text" class="text-input" name="txbMO3" />
            </div>
            <div class="divbox">
                <label for="">MO 4:</label>
                <input type="text" class="text-input" name="txbMO4" />
            </div>
            <div class="divbox">
                <label for="">MO 5:</label>
                <input type="text" class="text-input" name="txbMO5" />
            </div>
            <div class="divbox">
                <label for="">MO 6:</label>
                <input type="text" class="text-input" name="txbMO6" />
            </div>
            <hr />
            <div class="divbox">
                <label for="">MO 7:</label>
                <input type="text" class="text-input" name="txbMO7" />
            </div>
            <div class="divbox">
                <label for="">MO 8:</label>
                <input type="text" class="text-input" name="txbMO8" />
            </div>
            <div class="divbox">
                <label for="">MO 9:</label>
                <input type="text" class="text-input" name="txbMO9" />
            </div>
            <div class="divbox">
                <label for="">MO 10:</label>
                <input type="text" class="text-input" name="txbM10" />
            </div>
            <div class="divbox">
                <label for="">MO 11:</label>
                <input type="text" class="text-input" name="txbM11" />
            </div>
            <div class="divbox">
                <label for="">MO 12:</label>
                <input type="text" class="text-input" name="txbM12" />
            </div>
        </div>
        <hr />
        <div class="center-align">
    <input class="Submit" type="submit" name="submit" id="submit" class="submit-class" value="Gönder" />
</div>
</section>
<div class="clearfx"></div>
</form>
