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 | * |
ae5dddc0 |
15 | * @copyright 1999-2011 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 | // |
25 | extract($t); |
26 | |
27 | |
5083f41e |
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> |