#29256 [NEW]: SOAP HTTP Error when envelop size is more than 24345 bytes
| From: | reudeml04 at free dot fr | Date: | Mon, 19 Jul 2004 11:43:33 +0000 |
| Subject: | #29256 [NEW]: SOAP HTTP Error when envelop size is more than 24345 bytes | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-62632@lists.php.net to get a copy of this message | ||
From: reudeml04 at free dot fr
Operating system: Win2000 Prof [Version 5.00.] SP4
PHP version: 5.0.0
PHP Bug Type: SOAP related
Bug description: SOAP HTTP Error when envelop size is more than 24345 bytes
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 bug report at http://bugs.php.net/?id=29256&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29256&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29256&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=29256&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=29256&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29256&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=29256&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=29256&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29256&r=support
Expected behavior: http://bugs.php.net/fix.php?id=29256&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29256&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29256&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=29256&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29256&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=29256&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=29256&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29256&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29256&r=float