Allow addition of extra attributes to user/pwd inputs
[squirrelmail.git] / templates / default_rpc / rpc_response_error.tpl
1 <?php
2
3 /**
4 * rpc_response_error.tpl
5 *
6 * Template for constructing a standard (SOAP-compliant)
7 * response to an errant 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 $error_code The numeric error code associated with the
13 * current error condition
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)
20 *
21 * @copyright 1999-2011 The SquirrelMail Project Team
22 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
23 * @version $Id$
24 * @package squirrelmail
25 * @subpackage templates
26 */
27
28
29 // retrieve the template vars
30 //
31 extract($t);
32
33
34 echo '<?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>