Marius Burkard
2016-07-10 e1ceb050e19c7574bca146a8da7047ee4ff456b5
remoting_client/examples/client_delete_everything.php
@@ -1,16 +1,16 @@
<?php
require('soap_config.php');
require 'soap_config.php';
$client = new SoapClient(null, array('location' => $soap_location,
                                     'uri'      => $soap_uri,
                            'trace' => 1,
                            'exceptions' => 1));
      'uri'      => $soap_uri,
      'trace' => 1,
      'exceptions' => 1));
try {
   if($session_id = $client->login($username,$password)) {
   if($session_id = $client->login($username, $password)) {
      echo 'Logged successfull. Session ID:'.$session_id.'<br />';
   }
@@ -21,14 +21,14 @@
   //* Delete client
   $affected_rows = $client->client_delete_everything($session_id, $client_id);
   echo "Client ".$client_id." has been deleted.<br>";
   //echo "Client ".$client_id." has been deleted.<br>";
   //print_r($affected_rows);
   if($client->logout($session_id)) {
      echo 'Logged out.<br />';
   }
} catch (SoapFault $e) {
   echo $client->__getLastResponse();
   die('SOAP Error: '.$e->getMessage());