Bug #29256 [Com]: SOAP HTTP Error when envelop size is more than 24345 bytes
| From: | keyurvaghani at gmail dot com | Date: | Wed, 21 May 2014 14:45:12 +0000 |
| Subject: | Bug #29256 [Com]: SOAP HTTP Error when envelop size is more than 24345 bytes | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-185883@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=29256&edit=1
ID: 29256
Comment by: keyurvaghani at gmail dot com
Reported by: reudeml04 at free dot fr
Summary: SOAP HTTP Error when envelop size is more than 24345
bytes
Status: Closed
Type: Bug
Package: SOAP related
Operating System: Win2000 Prof [Version 5.00.] SP4
PHP Version: 5.0.0
Assigned To: dmitry
Block user comment: N
Private report: N
New Comment:
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,
Keyur
Previous Comments:
------------------------------------------------------------------------
[2004-08-10 17:00:00] dmitry@php.net
Fixed in CVS HEAD.
It was a socket related BUG (not an ext/soap BUG).
------------------------------------------------------------------------
[2004-07-19 13:43:30] reudeml04 at free dot fr
Description:
------------
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 :
http://www.freewebs.com/reude/serverSimpleWS.php
and the main class is at :
http://www.freewebs.com/reude/simpleWS.class.php
The wsdl is located at http://www.freewebs.com/reude/simpleWS.wsdl
The Client is at :
http://www.freewebs.com/reude/clientSimpleWS.php
and the help fileAttachment.class is at :
http://www.freewebs.com/reude/fileAttachment.class.php
The file to sent is at : http://www.freewebs.com/reude/small.bin
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] => http://soapinterop.org/xsd )
) ) ) ) ) [faultstring] => Failed Sending HTTP SOAP request [faultcode] => HTTP )
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=29256&edit=1