Enchancement in SoapServer::handle method
| From: | krzysztof karasek | Date: | Tue, 29 Oct 2013 13:50:26 +0000 |
| Subject: | Enchancement in SoapServer::handle method | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-69941@lists.php.net to get a copy of this message | ||
Hi All,
Christian Stoller sent me a very nice solution.
No enchancement is required.
class SWASOAPServer extends SoapServer
{
public function handle($input, $toOutput = false){
ob_start();
parent::handle($input);
$result = ob_get_clean();
// now do something with the output
}
}
Regrads,
Krzysztof