<tr> 
		      <td align="right"></td>
		      <td>
		        <input type="submit" value=" Absenden " name="submit">
		      </td>
		    </tr>
		</table>
		</form>


<?php 
if (isset($_REQUEST['submit'])) {
    $client = new SoapClient(APP_ROOT . "/soap/stip.wsdl.php?" . microtime());
    $username = $_REQUEST['username'];
    $passwort = $_REQUEST['password'];
    $ErhKz = $_REQUEST['ErhKz'];
    $statecode = $_REQUEST['statecode'];
    $jobid = $_REQUEST['jobid'];
    $statemessage = $_REQUEST['statemessage'];
    $errorstatuscode = $_REQUEST['errorstatuscode'];
    try {
        $response_stip = $client->SendStipendienbezieherStipError(array("userName" => $username, "passWord" => $passwort, "errorReport" => array("ErhKz" => $ErhKz, "StateCode" => $statecode, "StateMessage" => $statemessage, "ErrorStatusCode" => $errorstatuscode, "JobID" => $jobid)));
        echo '<h2>Error Request Result sent</h2>';
    } catch (SoapFault $fault) {
        echo "SOAP Fault: (faultcode: " . $fault->faultcode . ", faultstring: " . $fault->faultstring . ")", E_USER_ERROR;
    }
}
?>
</body>
</html>