#47021 [Com]: SoapClient stumbles over WSDL delivered with "Transfer-Encoding: chunked"
| From: | giovanni at giacobbi dot net | Date: | Mon, 26 Jan 2009 10:54:58 +0000 |
| Subject: | #47021 [Com]: SoapClient stumbles over WSDL delivered with "Transfer-Encoding: chunked" | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-133213@lists.php.net to get a copy of this message | ||
ID: 47021
Comment by: giovanni at giacobbi dot net
Reported By: daniel dot gorski at develnet dot org
Status: Open
Bug Type: SOAP related
Operating System: Linux
PHP Version: 5.3CVS-2009-01-06 (CVS)
New Comment:
Please see related discussion:
http://marc.info/?t=123291993300002&r=1&w=2
See also bug report #43069 which actually caused this bug.
Previous Comments:
------------------------------------------------------------------------
[2009-01-22 15:35:02] ml at x-net dot be
I can confirm this bug. I tried avoiding the chunking in Apache by
using mod_deflate, but the PHP SOAP client probably doesn't send an
Accept-Encoding header with gzip in it.
------------------------------------------------------------------------
[2009-01-06 16:28:52] daniel dot gorski at develnet dot org
Description:
------------
The \SoapClient (and probably the \SoapServer) stumble over WSDL files
that are delivered via HTTP in chunks, carrying the HTTP response header
"Transfer-Encoding: chunked".
Reproduce code:
---------------
$sc = \SoapClient('http://any.wsdl/that/is/delivered/in/chunks');
Expected result:
----------------
No error, intantiation and initialization of the \SoapClient object.
Actual result:
--------------
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing
WSDL: Couldn't load from [URL]: Start tag expected, '<' not found in
[FILE]
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47021&edit=1