php.net |  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
Votes:2
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
 [2004-07-19 13:43 UTC] 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 )

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-10 17:00 UTC] dmitry@php.net
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,
Keyur
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 11:01:30 2024 UTC