<?
require("nusoap.php");
?>
<html>
<h2>Client</h2>
<form action="<?= $_SERVER['PHP_SELF'] ?>" method="POST">
<p><b>Nim:</b>
<input type ="text"name="nim">
</p>
<p><b>Nama:</b>
<input type ="text"name="nm">
<br>
<p><b>Kelas:</b>
<input type ="text"name="kls">
<br>
<input type="submit"value="Cetak"name="Cetak">
</p>
</form>
<?
require_once('nusoap.php');
$a=$_POST['nim'];
$b=$_POST['nm'];
$c=$_POST['kls'];
if($_POST['Cetak']){
$client=new nusoap_client('http://localhost/bisa/server1.php');
$result=$client->call("cetak",array("a"=>$a,"b"=>$b,"c"=>$c));
$err=$client->getError();
if($err)
{
echo"<p><b>ERROR!".$client->getError()."</b></p>";
}
else
{
echo"<p><b>Hasil : $result</b></p>";
}
}
?>
</body>
</html>