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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bostjan dot skufca at gmail dot com
New email:
PHP Version: OS:

 

 [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-2024 The PHP Group
All rights reserved.
Last updated: Tue May 21 16:01:31 2024 UTC