php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #48162 Support for standalone SOAP server
Submitted: 2009-05-06 11:06 UTC Modified: 2011-01-02 02:33 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: bostjan dot skufca at gmail dot com Assigned:
Status: Open Package: SOAP related
PHP Version: 5.2.9 OS: *
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
27 + 16 = ?
Subscribe to this entry?

 
 [2009-05-06 11:06 UTC] bostjan dot skufca at gmail dot com
Description:
------------
I am trying to create a standalone SOAP server with PHP. So far the results are close to NULL, because the SoapServer::handle() functions throws an error complaining about headers being sent already.

It would be truly appreciated if support for STANDALONE SOAP service gets implemented. All that needs to be done is to implement another handle*() function, which, instead of using header() function (or PHP internal equivalent) to send HTTP headers, returns every part of response as a string.

Sample code:
(...here we create the listening socket etc...)
$clientSocket = socket_accept($listenSocket);
$soapRequest = socket_read($clientSocket, ...);
$soapResponse = SoapServer::handleToString($soapRequest);
socket_write($clientSocket, $soapResponse);
socket_close($clientSocket);



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-02 02:33 UTC] jani@php.net
-Package: Feature/Change Request +Package: SOAP related
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon May 25 09:01:25 2020 UTC