php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42191 Multiple SOAP Calls Fail in WSDL Mode
Submitted: 2007-08-02 22:36 UTC Modified: 2007-08-30 01:00 UTC
Votes:7
Avg. Score:4.1 ± 1.0
Reproduced:7 of 7 (100.0%)
Same Version:4 (57.1%)
Same OS:0 (0.0%)
From: jsinglet at gmail dot com Assigned: dmitry (profile)
Status: No Feedback Package: SOAP related
PHP Version: 5.2.3 OS: Mac OS X 10.4.10
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: jsinglet at gmail dot com
New email:
PHP Version: OS:

 

 [2007-08-02 22:36 UTC] jsinglet at gmail dot com
Description:
------------
Multiple calls from a PHP-based SOAPClient to a PHP-based SOAPServer 
fail. When you make even two using the same client handle, the call 
fails with the error: 

PHP Warning:  SoapClient::__doRequest(): 7168 bytes of buffered data 
lost during stream conversion! 




Reproduce code:
---------------
THE SERVER CODE

$GLOBALS['HTTP_RAW_POST_DATA'] = file_get_contents("php://input");
ini_set("soap.wsdl_cache_enabled", 0);

$s = new SoapServer('MyWS.wsdl');
$s->setClass('ClientService');
$s->handle();

CLIENT CLODE

ini_set("soap.wsdl_cache_enabled", 0);

$client = new SoapClient('MyWS.wsdl', array("classmap"=>array("NewClient"=>"NewClient")));

$result = $client->getNewClient();
//SECOND CALL CREATES WARNING
$result = $client->getNewClient();
		
		


Expected result:
----------------
The script should run with no errors or warnings.

Actual result:
--------------
PHP Warning:  SoapClient::__doRequest(): 7168 bytes of buffered data 
lost during stream conversion! in /Users/../test.php

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-08-22 15:24 UTC] dmitry@php.net
The problem is probably related to HTTP Keap-Alive.
Could you please show result of $client->__getLastResponseHeaders() and $client->__getLastResponse() after first call?
Do you use http:// or https:// ?
 [2007-08-30 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Oct 05 07:01:27 2024 UTC