summaryrefslogtreecommitdiff
path: root/ext/soap/interop/testserver.php
blob: 03973c88635d3efedcf2bff5e06cc49557034f74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
include "SOAP/Server.php";

function testMethod($arg) {
    if ($arg != "") {
        return crypt($arg);
    } else {
        return "Please supply a text";
    }    
}

$server = new soap_server();

$server->addToMap("testMethod",array("string"),array("string"));
$server->service($HTTP_RAW_POST_DATA);
echo "<!-- this is a test -->";
?>