any chance for feature in soap extension?

php.internals

Robert Janeczek

21 years ago
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 :]

David Kingma - Jool.nl

21 years ago
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 :] > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >
---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.

Robert Janeczek

21 years ago
> 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

Dmitry Stogov

21 years ago
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.