alert('Fehler: '+fehler);
			}
		}
	</script>
</head>
<body>
	<h1>Testclient für Webservices</h1>
	
	<form action="test_client.php" method="post">
		<input type="submit" value="Test PHP" name="submit">
		<input type="button" onclick="sendSoap();" value="Test JS">
	</form>

<?php 
if (isset($_REQUEST['submit'])) {
    $url = APP_ROOT . "soap/test.wsdl.php?" . microtime(true);
    $client = new SoapClient($url);
    echo 'URL: ' . $url;
    echo '<br><br>';
    try {
        $response = $client->myTest('foo');
        var_dump($response);
    } catch (SoapFault $fault) {
        echo "SOAP Fault: (faultcode: " . $fault->faultcode . ", faultstring: " . $fault->faultstring . ")", E_USER_ERROR;
    }
}
?>
</body>
</html>
>>>>>>> fee287127566cd5d18c55b556d178b661711c694