Marius Burkard
2016-07-08 9bcd2fd54728b9e634442f584268da03acaea633
commit | author | age
10b4c8 1 <?php
T 2
b1a6a5 3 require 'soap_config.php';
10b4c8 4
T 5
6 $client = new SoapClient(null, array('location' => $soap_location,
b1a6a5 7         'uri'      => $soap_uri,
MC 8         'trace' => 1,
9         'exceptions' => 1));
10b4c8 10
T 11
12 try {
b1a6a5 13     if($session_id = $client->login($username, $password)) {
10b4c8 14         echo 'Logged successfull. Session ID:'.$session_id.'<br />';
T 15     }
16
17     //* Parameters
18     $database_user_id = 1;
19
20
21     //* Get the database record
22     $affected_rows = $client->sites_database_user_delete($session_id, $database_user_id);
23
24     echo "Number of records that have been deleted: ".$affected_rows."<br>";
b1a6a5 25
10b4c8 26     if($client->logout($session_id)) {
T 27         echo 'Logged out.<br />';
28     }
b1a6a5 29
MC 30
10b4c8 31 } catch (SoapFault $e) {
T 32     echo $client->__getLastResponse();
33     die('SOAP Error: '.$e->getMessage());
34 }
35
36 ?>