View Single Post
  #4  
Old 31st July 2007, 15:10
3cwired_com 3cwired_com is offline
Senior Member
 
Join Date: Sep 2006
Posts: 100
Thanks: 3
Thanked 3 Times in 2 Posts
Default

Code:
<?php
include("soap.lib.php");

$server_url = "http://www.domain.com:81";

$soapclient = new soapclient($server_url.'/remote/index.php');

$parameters = array('user' => 'admin',
'pass' => 'admin');

$session_id = $soapclient->call('login',$parameters);

if($err = $soapclient->getError()) die("Error: ".$err);

$params = array ( 'sid' => $session_id,
'module' => 'reseller',
'function' => 'reseller_list',
'params' => '');
$reseller_list = $soapclient->call('service',$params);

if($err = $soapclient->getError()) die("Error: ".$err);
print_r($reseller_list);
$soapclient->call('logout',array('sid' => $session_id));

if($err = $soapclient->getError()) die("Error: ".$err);

echo "<br>Script end ...";
?>
__________________
Behind every great fortune lies a crime.
www.3cwired.com - Web Design/SEO/Repair/Sales/Upgrades
www.galants.org - The Home for Galant Enthusiasts
www.locatemyip.com - More than just free IP displays
Reply With Quote