- Using WSDL to Interface with the Horde API
<title>Horde WSDL Test</title>
Horde Installation Details
$horde_user, 'pass' => $horde_pass));
if (is_a($wsdl, 'PEAR_Error')) {
echo "" . print_r($wsdl, 1);
$proxy_code = $wsdl->getMessage();
} else {
$proxy_code = highlight_string($wsdl->generateProxyCode(), 1);
$client = $wsdl->getProxy();
if (is_a($client, 'PEAR_Error')) {
$client = $client->getMessage();
} else {
$client = print_r($client, 1);
}
$client = new WebService_hordeService_hordePort();
if (!empty($horde_user) && !empty($horde_pass)) {
$test = print_r($client->horde_listAPIs(), 1);
//$test = print_r($client->contacts_sources(0, true), 1);
//$test = print_r($client->mail_folderlist(), 1);
}
}
// write to the html page
$content = <<Horde RPC Test
$wsdl_data
$proxy_code
$test
END;
echo($content);
}
$listing = highlight_file($_SERVER["SCRIPT_FILENAME"], 1);
?>