From: [EMAIL PROTECTED]
Operating system: Solaris 9
PHP version: 5.0.2
PHP Bug Type: SOAP related
Bug description: Error Fetching http body, No Content-Length, connection closed or
chunked data
Description:
------------
I get the error message "Error Fetching http body, No Content-Length,
connection closed or chunked data [faultcode]" when try to communicate
with Sybase EAServer via SOAP.
When redirecting the web services via a Proxy-Plugin in an iPlanet
webserver everything works ok.
It seems that EAServer sends some bad encoded HTTP body.
When changing the SOAP extension code to only support HTTP/1.0, everything
works.
How about introducing an additional option to SoapClient named
"http_version" that can be set to 1.1 or 1.0 (default 1.1). At this time
"1.1" is hardcoded into php_http.c.
When 1.0 is on, "Connection:" should be assumed as "close".
Something other:
If the extension CURL is used, why not use CURL for sending SOAP requests?
Reproduce code:
---------------
<h1>SOAP Test</h1>
<?php
$ws=new
SoapClient("http://ws.pangaea.de:8084/ws/services/WebServices?wsdl",array('trace'=>TRUE));
try {
$res=$ws->metadata("10.1594/PANGAEA/206854");
} catch (SoapFault $sf) {
echo "<pre>".print_r($sf)."</pre>";
}
echo
"<h2>Request</h2><pre>".htmlspecialchars($ws->__getLastRequest())."</pre><h2>Response</h2><pre>".htmlspecialchars($ws->__getLastResponse())."</pre>";
echo "<h2>Decoded</h2><pre>";
print_r($res);
?>
</pre>
Expected result:
----------------
no SoapFault
--
Edit bug report at http://bugs.php.net/?id=30329&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30329&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30329&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30329&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30329&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30329&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30329&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30329&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30329&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30329&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30329&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30329&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30329&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30329&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30329&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30329&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30329&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30329&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30329&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30329&r=mysqlcfg