ID:               29256
 Updated by:       [EMAIL PROTECTED]
 Reported By:      reudeml04 at free dot fr
 Status:           Assigned
 Bug Type:         SOAP related
 Operating System: Win2000 Prof [Version 5.00.] SP4
 PHP Version:      5.0.0
 Assigned To:      dmitry
 New Comment:

Fixed in CVS HEAD.
It was a socket related BUG (not an ext/soap BUG).


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

[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 http://bugs.php.net/?id=29256&edit=1

Reply via email to