This is a SOAP endpoint. Nothing to see here...'; exit; } class MySpecial_Server extends SoapServer { function __construct() { parent::__construct(null, array( 'uri' => 'http://www.foobar.com/', 'encoding' => 'utf-8', ) ); $this->setClass(__CLASS__); // setObject() if there already is an instantiated object to use } function ping() { return 'pong!'; } function someFunction($param1, $param2) { return true; // or false on error } // add Soap-Functions here! } $server = new MySpecial_Server(); $server->handle(); ?>