From:
Operating system: Red Hat Enterprise Linux ES rele
PHP version: 5.3.6
Package: SOAP related
Bug Type: Bug
Bug description:soapclien no process response with Transfer-Enconding chunked
Description:
------------
SoapClient return the message error "[HTTP] Error Fetching http body, No
Content-Length, connection closed or chunked" when there is a response with
Transfer-Encoding chunked. The web service test with sopaUI and the header
response (I can´t captured with __getLastResponseHeaders()) is:
X-AspNet-Version 2.0.527
Transfer-Enconding chunked
#status# HTTP 1.1 200 OK
Via 1.1 Nereo (Vordel)
Connection keep-alive
Content-Typext/xml; charset=utf-8
Server Microsoft IIS/6.0
X-Powered-By Asp.Net
Cache-Control private, max-age=0
This problem was resolved (supposedly) in 5.3.0 but is still in 5.3.6. The
temporary solution is to use NuSoap library as client.
Test script:
---------------
<?php
$Client = new
SoapClient('any.wsdl',array('cache_wsdl'=>WSDL_CACHE_NONE,'trace' =>
1,'exceptions' => 1));
$response = $Client->__soapCall('anyFunction', array($request));
?>
Actual result:
--------------
Fatal error: Uncaught SoapFault exception: [HTTP] Error Fetching http
body, No Content-Length, connection closed or chunked data in
/usr/local/apache2/htdocs/lab/cliente.php:41
Stack trace:
#0 [internal function]: SoapClient->__doRequest('<?xml version="...',
'http://ws.fonas...', 'http://WSFonasa...', 1, 0)
#1 /usr/local/apache2/htdocs/lab/cliente.php(41):
SoapClient->__soapCall('CertifTrabajado...', Array)
#2 {main}
thrown in /usr/local/apache2/htdocs/lab/cliente.php on line 41
--
Edit bug report at https://bugs.php.net/bug.php?id=55245&edit=1
--
Try a snapshot (PHP 5.2):
https://bugs.php.net/fix.php?id=55245&r=trysnapshot52
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=55245&r=trysnapshot53
Try a snapshot (trunk):
https://bugs.php.net/fix.php?id=55245&r=trysnapshottrunk
Fixed in SVN:
https://bugs.php.net/fix.php?id=55245&r=fixed
Fixed in SVN and need be documented:
https://bugs.php.net/fix.php?id=55245&r=needdocs
Fixed in release:
https://bugs.php.net/fix.php?id=55245&r=alreadyfixed
Need backtrace:
https://bugs.php.net/fix.php?id=55245&r=needtrace
Need Reproduce Script:
https://bugs.php.net/fix.php?id=55245&r=needscript
Try newer version:
https://bugs.php.net/fix.php?id=55245&r=oldversion
Not developer issue:
https://bugs.php.net/fix.php?id=55245&r=support
Expected behavior:
https://bugs.php.net/fix.php?id=55245&r=notwrong
Not enough info:
https://bugs.php.net/fix.php?id=55245&r=notenoughinfo
Submitted twice:
https://bugs.php.net/fix.php?id=55245&r=submittedtwice
register_globals:
https://bugs.php.net/fix.php?id=55245&r=globals
PHP 4 support discontinued:
https://bugs.php.net/fix.php?id=55245&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=55245&r=dst
IIS Stability:
https://bugs.php.net/fix.php?id=55245&r=isapi
Install GNU Sed:
https://bugs.php.net/fix.php?id=55245&r=gnused
Floating point limitations:
https://bugs.php.net/fix.php?id=55245&r=float
No Zend Extensions:
https://bugs.php.net/fix.php?id=55245&r=nozend
MySQL Configuration Error:
https://bugs.php.net/fix.php?id=55245&r=mysqlcfg
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=55245&r=trysnapshot54