mirror of
https://github.com/php/php-src.git
synced 2024-10-14 04:52:33 +00:00
17 lines
345 B
PHP
17 lines
345 B
PHP
|
<?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 -->";
|
||
|
?>
|