#49226 [NEW]: SoapServer failing on construction (cannot load wsdl)
From: richard at rjharrison dot org
Operating system: linux
PHP version: 5.3.0
PHP Bug Type: SOAP related
Bug description: SoapServer failing on construction (cannot load wsdl)
Description:
------------
SoapServer is failing on construction. I pass an URL with *valid* WSDL
xml, which is generated automatically.
- If I save the WSDL locally and load from disk it works.
- If I serve the WSDL remotely from a static .xml file it works.
- If I load the WSDL-url in my browser I get a well-formed XML response.
- I can access the dodgy-wsdl URL via file_get_contents.
- Using 5.2.6 on another machine it works fine.
I inspected the http requests and think it could be related to chunked
encoding (it fails on the chunked encoding response).
Reproduce code:
---------------
<?php
$url = 'http://myserver/path?wsdl';
$serv = new SoapServer($url);
?>
I can probably provide a sample url privately.
Expected result:
----------------
$serv to be instantiated
Actual result:
--------------
SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://myserver/path?wsdl' :
Premature end of data in tag definitions line 2
Below are the headers of the response that fails:-
Date: Tue, 11 Aug 2009 19:15:29 GMT
Server: Apache/2.2.8 (Unix) DAV/2 PHP/5.3.0
X-powered-by: PHP/5.3.0
Vary: Accept-Encoding,User-Agent
Connection: close
Transfer-encoding: chunked
Content-type: text/xml
--
Edit bug report at http://bugs.php.net/?id=49226&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49226&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49226&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49226&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=49226&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49226&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=49226&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=49226&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=49226&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=49226&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=49226&r=support
Expected behavior: http://bugs.php.net/fix.php?id=49226&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=49226&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=49226&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=49226&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49226&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=49226&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=49226&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=49226&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=49226&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=49226&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=49226&r=mysqlcfg
Thread (20 messages)
- richard at rjharrison dot org
- stig dot woxholt at fotoknudsen dot no#49226 [Com]: SoapServer failing on construction (cannot load wsdl)
- sjoerd-php at linuxonly dot nl#49226 [Com]: SoapServer failing on construction (cannot load wsdl)
- richard at rjharrison dot org#49226 [Opn]: SoapServer failing on construction (cannot load wsdl)
- stig dot woxholt at fotoknudsen dot no#49226 [Com]: SoapServer failing on construction (cannot load wsdl)
- richard at rjharrison dot org#49226 [Opn]: SoapServer failing on construction (cannot load wsdl)
- sjoerd@php.net#49226 [Opn->Bgs]: SoapServer failing on construction (cannot load wsdl)
- richard at rjharrison dot org#49226 [Bgs]: SoapServer failing on construction (cannot load wsdl)
- sjoerd@php.net#49226 [Bgs]: SoapServer failing on construction (cannot load wsdl)
- richard at rjharrison dot org#49226 [Bgs]: SoapServer failing on construction (cannot load wsdl)
- sjoerd@php.net#49226 [Bgs->Fbk]: SoapServer failing on construction (cannot load wsdl)
- sjoerd@php.net#49226 [NoF]: SoapServer failing on construction (cannot load wsdl)
- evrard at h2a dot lu#49226 [Com]: SoapServer failing on construction (cannot load wsdl)
- sjoerd@php.net#49226 [NoF]: SoapServer failing on construction (cannot load wsdl)
- sjoerd@php.net#49226 [NoF->Fbk]: SoapServer failing on construction (cannot load wsdl)
- petro at eps1lon dot com#49226 [Com]: SoapServer failing on construction (cannot load wsdl)
- petro at eps1lon dot com#49226 [Com]: SoapServer failing on construction (cannot load wsdl)
- Sjoerd@php.net#49226 [Fbk]: SoapServer failing on construction (cannot load wsdl)
- evalds at 2egames dot com#49226 [Com]: SoapServer failing on construction (cannot load wsdl)
- felipe@php.net#49226 [NoF->Fbk]: SoapServer failing on construction (cannot load wsdl)