PHP

SOAP Server

Syntax#

Basic SOAP Server

function test($x)
{
    return $x;
}

$server = new SoapServer(null, array('uri' => "https://test-uri/"));
$server->addFunction("test");
$server->handle();

This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow