Seriously? The variable is named as an array and initialized as a string? Well, I...
[squirrelmail.git] / templates / default_rpc / rpc_response_success.tpl
CommitLineData
31592645 1<?php
2
3/**
4 * rpc_response_success.tpl
5 *
5083f41e 6 * Template for constructing a standard (SOAP-compliant)
7 * response to a remote procedure call.
31592645 8 *
9 * The following variables are available in this template:
31592645 10 *
5083f41e 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 *
22387c8d 15 * @copyright 1999-2017 The SquirrelMail Project Team
31592645 16 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
5083f41e 17 * @version $Id$
31592645 18 * @package squirrelmail
19 * @subpackage templates
20 */
21
22
23// retrieve the template vars
24//
25extract($t);
26
27
5083f41e 28echo '<?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>