Add access keys to main options page
[squirrelmail.git] / templates / default_rpc / rpc_response_error.tpl
CommitLineData
31592645 1<?php
2
3/**
4 * rpc_response_error.tpl
5 *
5083f41e 6 * Template for constructing a standard (SOAP-compliant)
7 * response to an errant remote procedure call.
31592645 8 *
9 * The following variables are available in this template:
5083f41e 10 *
11 * string $rpc_action The RPC action being handled
12 * int $error_code The numeric error code associated with the
31592645 13 * current error condition
5083f41e 14 * string $error_text Any error message associated with the
15 * current error condition (optional; may not be
16 * present)
17 * string $guilty_party A string indicating the party who caused the
18 * error: either "client" or "server" (optional;
19 * may not be present)
31592645 20 *
5083f41e 21 * @copyright &copy; 1999-2008 The SquirrelMail Project Team
31592645 22 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
5083f41e 23 * @version $Id$
31592645 24 * @package squirrelmail
25 * @subpackage templates
26 */
27
28
29// retrieve the template vars
30//
31extract($t);
32
33
5083f41e 34echo '<?xml version="1.0" ?>'; ?>
35<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">
36 <soap:header>
37 <sm:result_code><?php echo $error_code; ?></sm:result_code>
38 <sm:result_text><?php echo $error_text; ?></sm:result_text>
39 </soap:header>
40 <soap:body>
41 <soap:fault>
42 <faultcode>soap:<?php echo ucfirst(strtolower($guilty_party)); ?></faultcode>
43 <faultstring><?php echo $error_text; ?></faultstring>
44 <detail>
45 <sm:result_code><?php echo $error_code; ?></sm:result_code>
46 <sm:result_text><?php echo $error_text; ?></sm:result_text>
47 </detail>
48 </soap:fault>
49 </soap:body>
50</soap:envelope>