[cvs] [Wiki] changed: WSDLHowTo

Jan Schneider jan at horde.org
Mon Jun 6 03:24:25 PDT 2005


jan  Mon, 06 Jun 2005 03:24:25 -0700

Modified page: http://wiki.horde.org/WSDLHowTo
New Revision:  1.4

@@ -1,16 +1,16 @@
 + Using WSDL to Interface with the Horde API
 
-Most Horde modules have an API interface which is used by other modules to access and exchange data.  These API's are described in the file <em>modulename/lib/api.php</em>.  Calling the <em>/rpc.php</em> in your Horde webroot allows you to access the API remotely via RPC/DISCO/SOAP/WSDL etc.   The following script describes how to access a Horde installation remotely and list the APIs that are available.
+Most Horde modules have an API interface which is used by other modules to access and exchange data.  These API's are described in the //modulename/lib/api.php// files.  Calling the ///rpc.php// in your Horde webroot allows you to access the API remotely via XML-RPC/DISCO/SOAP/WSDL/REST etc.   The following script describes how to access a Horde installation remotely and list the APIs that are available.
 
 If you have IMP/Turba installed you can also try these calls which are commented out in the script:
 <code type="php">
-            $test = print_r($client->contacts_sources(0, true), 1);
-            $test = print_r($client->mail_folderlist(), 1);
+$test = print_r($client->contacts_sources(0, true), 1);
+$test = print_r($client->mail_folderlist(), 1);
 </code>
 For further information, refer to the http://dev.horde.org/ 
 
-<code type="php">
+<code type="htmlphp">
 <html>
 <head><title>Horde WSDL Test</title></head>
 <body>
 <?php
@@ -20,9 +20,9 @@
 $horde_pass = @$_POST['pass'];
 $horde_baseurl = @$_POST['url'];
 ?>
 <h1>Horde Installation Details</h1>
-<form action="<?php echo $PHP_SELF ?>" method="POST">
+<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="POST">
 Horde Base Url <input type="text" name="url" type="text" size="80" value="<?php echo $horde_baseurl ?>"/> Required<br />
 Username <input type="text" name="user" size="20" value="<?php echo $horde_user ?>"/><br />
 Password <input type="password" name="pass" size="20" value="<?php echo $horde_pass ?>"/><br />
 <input type="submit"><br />


More information about the cvs mailing list