|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29256 SOAP HTTP Error when envelop size is more than 24345 bytes
Submitted: 2004-07-19 13:43 UTC Modified: 2004-08-10 17:00 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: reudeml04 at free dot fr Assigned: dmitry (profile)
Status: Closed Package: SOAP related
PHP Version: 5.0.0 OS: Win2000 Prof [Version 5.00.] SP4
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: reudeml04 at free dot fr
New email:
PHP Version: OS:


 [2004-07-19 13:43 UTC] reudeml04 at free dot fr
Using the new PHP5 SOAP extension, I am building a web service, with both a PHP Client and a PHP Server.
I have a simple class 'fileAttachment' which I send via the WS PHP Client to the PHP Web Service. The web service is also a simple class that is supposed to process the fileAttachment received.
Everything works fine until the SOAP request size goes over 24345 bytes.
When this limit is reached, I get the SOAP Fault[faultstring] => Failed Sending HTTP SOAP request [faultcode] => HTTP.

If I remove just 1 byte of the fileAttachment content, the request works fine.

Reproduce code:
The WS Server code is at :
and the main class is at :

The wsdl is located at

The Client is at :

and the help fileAttachment.class is at :

The file to sent is at :

Expected result:
var_dump of response is just an echo of the fileAttachment that has been sent :

object(stdClass)#4 (2) { ["simpleWSResponse"]=> object(stdClass)#3 (2) { ["responseCode"]=> string(3) "000" ["responseMessage"]=> string(29) "Reflects the input parameters" } ["packageID"]=> string(23823) "c:\temp\small.bin / 23642 / object(stdClass)#2 (3) { ["fileName"]=> string(17) "c:\temp\small.bin" ["fileSize"]=> string(5) "23642" ["fileContent"]=> string(23642) "6kd5NaRSP ... truncated ... N6aRSPbRy01" } " }

Actual result:
var_dump of response is :

SoapFault Object ( [message:protected] => [string:private] => [code:protected] => 0 [file:protected] => c:\program files\easyphp1-7-php5\www\php5soapserver\clientsimplews.php [line:protected] => 30 [trace:private] => Array ( [0] => Array ( [file] => c:\program files\easyphp1-7-php5\www\php5soapserver\clientsimplews.php [line] => 30 [function] => __call [class] => SoapClient [type] => ->  [args] => Array ( [0] => c:\temp\small.bin236436kd5NaRSPbRybXdW+++... truncated ... WSqQN6kd5NaRSPbRy012 ) [enc_stype] => fileAttachment [enc_ns] => ) ) ) ) ) ) [faultstring] => Failed Sending HTTP SOAP request [faultcode] => HTTP )


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-10 17:00 UTC]
Fixed in CVS HEAD.
It was a socket related BUG (not an ext/soap BUG).
 [2014-05-21 14:45 UTC] keyurvaghani at gmail dot com
Hi Dmitry,

Can you please provide me more details regarding how will it be solved by you...?

because i am facing same issue but it couldn't resolved.

Thanks & Regards,
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Feb 25 09:01:26 2024 UTC