# any chance for feature in soap extension?

- Thread: https://externals.io/message/13114
- Original archive: https://news-web.php.net/php.internals/13114
- Started by Robert Janeczek on 2004-10-03T09:33:15+00:00
- Messages: 4
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #13114 — Robert Janeczek — 2004-10-03T09:33:15+00:00

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

what are the chances that soap extension will have the (optional) ability to
return output from SoapServer::handle instead of echo`ing it with http
headers? current version makes it impossible to create soap server other
than httpd-based (even more - it`s impossible to create server for not
httpd-linked sapi). if there is a way to do this - give me some directions
please.
thanks

rash

ps. yes, i know there is soap server class in pear :]

---

## #13116 — D.Kingma@jool.nl — 2004-10-03T11:51:11+00:00

URL: https://externals.io/message/13114#13116 · In reply to: #13114

Citeren Robert Janeczek <rashid@ds.pg.gda.pl>:

> what are the chances that soap extension will have the (optional) ability to
> return output from SoapServer::handle instead of echo`ing it with http
> headers? current version makes it impossible to create soap server other
> than httpd-based (even more - it`s impossible to create server for not
> httpd-linked sapi). if there is a way to do this - give me some directions
> please.
> thanks

Take a look at `ob_start()`,ob_get_contents() and `ob_end_clean()` functions. These
make it possible to capture the output. 
To call a webservice handle from a not HTTP request you can manually set the
$HTTP_RAW_POST_DATA var with the contents of a mail or any other communication
protocol.

Kind regards,

David

> 
> rash
> 
> ps. yes, i know there is soap server class in pear :]
> 
> -- 
> 
> 
> 
> 




----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

---

## #13122 — Robert Janeczek — 2004-10-03T16:53:56+00:00

URL: https://externals.io/message/13114#13122 · In reply to: #13116

> Take a look at `ob_start()`,ob_get_contents() and `ob_end_clean()`
> functions. These make it possible to capture the output.
> To call a webservice handle from a not HTTP request you can manually
> set the $HTTP_RAW_POST_DATA var with the contents of a mail or any
> other communication protocol.

thanks, it worked :)

rash

---

## #13126 — Dmitry Stogov — 2004-10-04T07:48:58+00:00

URL: https://externals.io/message/13114#13126 · In reply to: #13114

Hi Robert,

It is possible to grab output with output control functions.

    `ob_start()`;
    $server->handle($request);
    $response = `ob_get_contents()`;
    `ob_end_clean()`;

Thanks. Dmitry.

> -----Original Message-----
> From: Robert Janeczek [mailto:rashid@ds.pg.gda.pl] 
> Sent: Sunday, October 03, 2004 13:33
> To: internals@lists.php.net
> Subject: [PHP-DEV] any chance for feature in soap extension?
> 
> 
> what are the chances that soap extension will have the 
> (optional) ability to return output from SoapServer::handle 
> instead of echo`ing it with http headers? current version 
> makes it impossible to create soap server other than 
> httpd-based (even more - it`s impossible to create server for 
> not httpd-linked sapi). if there is a way to do this - give 
> me some directions please. thanks
> 
> rash
> 
> ps. yes, i know there is soap server class in pear :]
