ID:               42191
 Updated by:       [EMAIL PROTECTED]
 Reported By:      jsinglet at gmail dot com
-Status:           Assigned
+Status:           Feedback
 Bug Type:         SOAP related
 Operating System: Mac OS X 10.4.10
 PHP Version:      5.2.3
 Assigned To:      dmitry
 New Comment:

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:// ?


Previous Comments:
------------------------------------------------------------------------

[2007-08-02 22:36:26] 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


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=42191&edit=1

Reply via email to