Just fiddling. Give credit where credit is due. Template class header() function...
[squirrelmail.git] / templates / default_rpc / rpc_response_success.tpl
1 <?php
2
3 /**
4   * rpc_response_success.tpl
5   *
6   * Template for constructing a standard (SOAP-compliant)
7   * response to a remote procedure call.
8   *
9   * The following variables are available in this template:
10   *
11   * string $rpc_action  The RPC action being handled
12   * int    $result_code The result code
13   * string $result_text Any result message (optional; may not be present)
14   *
15   * @copyright &copy; 1999-2008 The SquirrelMail Project Team
16   * @license http://opensource.org/licenses/gpl-license.php GNU Public License
17   * @version $Id$
18   * @package squirrelmail
19   * @subpackage templates
20   */
21
22
23 // retrieve the template vars
24 //
25 extract($t);
26
27
28 echo '<?xml version="1.0" ?>'; ?>
29 <soap:envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:sm="http://squirrelmail.org/rpc" xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:soap-enc="http://www.w3.org/2003/05/soap-encoding" soap:encodingstyle="http://www.w3.org/2003/05/soap-encoding">
30   <soap:header>
31     <sm:result_code><?php echo $result_code; ?></sm:result_code>
32     <sm:result_text><?php echo $result_text; ?></sm:result_text>
33   </soap:header>
34   <soap:body>
35     <sm:<?php echo $rpc_action; ?>Response><?php
36 /* TODO/FIXME: when data is returned to the client, it goes here.... */
37   ?></sm:<?php echo $rpc_action; ?>Response>
38   </soap:body>
39 </soap:envelope>