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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Pull Requests

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: Sat Dec 21 14:01:32 2024 UTC