ex05_SoaGatewayEmpDel.php
<?php
/*
* Finally we delete the Employee record with personnel_id=99999999 again
*/
try{
$soapclient = new SoapClient("http://localhost:8022/adabas_EmployeesMini?WSDL", array('trace' => 1));
} catch (SoapFault $soapfault) {
echo "<pre>";
print_r($soapfault);
echo "</pre>";
}
/*
* All we need is the primary key
*/
$primKey = array('personnel_id' => '99999999');
/*
* Delete takes the key as the input and returns a "short response" (just a message)
*/
try {
$Adabasresponse = $soapclient->delete($primKey);
} catch (SoapFault $soapfault) {
echo "<pre>";
print_r($soapfault);
echo "</pre>";
return;
}
/*
* Print the response
*/
echo "<pre>";
print_r($Adabasresponse);
echo "</pre>";
?>