View Single Post
  #5  
Old 15th August 2011, 18:57
osterhase osterhase is offline
Member
 
Join Date: Jul 2011
Location: Germany
Posts: 49
Thanks: 5
Thanked 7 Times in 5 Posts
Default

Sorry to bother again... do you mean the function that is defined in remoting.inc.php? I got up that bit of the code that calls the function but don't know how to get the array returned or printed. I would appreciate your help.

Ah - by the way - am I right that the primary_id is the mail_user_id? (or how is the mailuser defined?)

Code:
<?php

$username = 'xxx';
$password = 'xxx';

$soap_location = 'http://localhost:8005/remote/index.php';
$soap_uri = 'http://localhost:8005/remote/';


$client = new SoapClient(null, array('location' => $soap_location,
                                     'uri'      => $soap_uri));

try {
	if($session_id = $client->login($username,$password)) {
		echo 'Login sucessful. Session-ID:'.$session_id.'<br />';
	}

	$primary_id = 108;
	$domain__id = $client->mail_user_get($session_id, $primary_id);

		if($client->logout($session_id)) {
		echo 'Logout succesful.<br />';
	}

	
} catch (SoapFault $e) {
	die('SOAP Blad: '.$e->getMessage());
}

?>
Reply With Quote