tbrehm
2009-09-03 5421462b39a5b41014569af59d3861b9ffe8a44f
commit | author | age
542146 1 <?php
T 2
3 $username = 'admin';
4 $password = 'admin';
5
6 $soap_location = 'http://localhost:8080/remote/index.php';
7 $soap_uri = 'http://localhost:8080/remote/';
8
9
10 $client = new SoapClient(null, array('location' => $soap_location,
11                                      'uri'      => $soap_uri));
12
13
14 try {
15     if($session_id = $client->login($username,$password)) {
16         echo 'Zalogowany. Sesja:'.$session_id.'<br />';
17     }
18
19
20     $client_id = 0;
21     $mailuser_id = 4;
22     $domain__id = $client->mail_user_delete($session_id, $mailuser_id);
23     
24     
25     
26     if($client->logout($session_id)) {
27         echo 'Wylogowany.<br />';
28     }
29     
30     
31 } catch (SoapFault $e) {
32     die('SOAP Blad: '.$e->getMessage());
33 }
34
35 ?>