# Enchancement in SoapServer::handle method

- Thread: https://externals.io/message/69941
- Original archive: https://news-web.php.net/php.internals/69941
- Started by krzysztof karasek on 2013-10-29T13:50:26+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #69941 — krzysztof karasek — 2013-10-29T13:50:26+00:00

URL: https://externals.io/message/69941#69941

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
