98.42 ); function getQuote($symbol) { global $quotes; return $quotes[$symbol]; } $soap = new DOMDocument(); $soap->load('php://input'); $server = new SoapServer("stockquote.wsdl"); $s = new WSSESoapServer($soap); try { if ($s->process()) { $server->addFunction("getQuote"); $server->handle($s->saveXML()); exit; } } catch (Exception $e) { /* Any exception handling */ } $server->fault(8, "Invalid Signature"); ?>