Bug #48216 [Asn->Csd]: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc
From: dmitry@php.net Date: Wed, 23 Nov 2011 10:50:20 +0000 Subject: Bug #48216 [Asn->Csd]: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc References: 1 Groups: php.bugs Request: Send a blank email to php-bugs+get-165451@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=48216&edit=1
ID: 48216
Updated by: dmitry@php.net
Reported by: mark at everytruckjob dot com
Summary: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra
content at the end of the doc
-Status: Assigned
+Status: Closed
Type: Bug
Package: SOAP related
Operating System: CentOs 5.3
PHP Version: 5.3.0RC2
Assigned To: dmitry
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2011-11-23 10:49:30] dmitry@php.net
Automatic comment from SVN on behalf of dmitry
Revision: http://svn.php.net/viewvc/?view=revision&revision=319714
Log: Fixed bug #48216 (PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the
doc, when server uses chunked transfer encoding with spaces after chunk size)
------------------------------------------------------------------------
[2011-10-05 07:01:28] emuns at quotify dot com
This is happening on PHP 5.3.2 on Ubuntu :(
Confirmed working on 5.2.17
------------------------------------------------------------------------
[2011-09-22 02:47:23] kotekp at gmail dot com
seems like:
* php 5.3.5 windows has same bug
* php 5.3.8 linux works fine
------------------------------------------------------------------------
[2011-07-12 08:41:12] tej dot nri at gmail dot com
I believe that this problem is only happening in php 5.3.* as it was working in php 5.2.*
The solution is also not very difficult.
Steps:
1. Download the WSDL file by $ wget http://example.com/path/to/wsdl/file.xml
2. Put this wsdl file at some location. Let's say the path is /local/path/to/wsdl/file.xml
3. Now create the soap client by the locally saved file like below
------------------------------------------------------------------------------
$soapClient = new SoapClient('/local/path/to/wsdl/file.xml', array('features'
=> SOAP_USE_XSI_ARRAY_TYPE, 'trace' => 1, 'exceptions' => true));
$result = $soapClient->__soapCall('ServiceName', $data);
------------------------------------------------------------------------------
I believe this will work.
------------------------------------------------------------------------
[2011-01-26 17:16:12] g at miernicki dot com
It appears this problem is not fixed on 5.3.4 or 5.3.5! I've
instantiated a brand new (out of the box) nuSoap 0.9.5 server, defined
a single service, and still receive the same error on both >>
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing
WSDL:Couldn't load from 'http://server/index.php?wsdl' : Extra content
at the end of the document in /home/user/consume.php:7 Stack trace:
#0 /home/user/consume.php(7): SoapClient->SoapClient('http://server...')
#1 {main} thrown in /home/user/consume.php on line 7
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=48216
--
Edit this bug report at https://bugs.php.net/bug.php?id=48216&edit=1
Thread (38 messages)
- #48216 [Com]: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc
- #48216 [Com]: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc
- #48216 [Opn]: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc
- #48216 [Com]: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc
- #48216 [Com]: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc
- #48216 [Opn->Fbk]: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc
- #48216 [Fbk]: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc
- #48216 [Com]: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc
- #48216 [Com]: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc
- #48216 [Com]: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc
- #48216 [Com]: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc
- #48216 [Com]: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc
- #48216 [NoF->Fbk]: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc
- #48216 [Com]: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc
- #48216 [Com]: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc
- Bug #48216 [Com]: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc
- Bug #48216 [Com]: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc
- Bug #48216 [Com]: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc
- Bug #48216 [NoF->Opn]: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc
- Bug #48216 [Com]: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc
- Bug #48216 [Com]: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc
- Bug #48216 [Com]: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc
- Bug #48216 [Com]: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc
- Bug #48216 [Com]: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc
- Bug #48216 [Com]: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc
- Bug #48216 [Com]: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc
- Bug #48216 [Com]: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc
- Bug #48216 [Com]: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc
- Bug #48216 [Opn->Asn]: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc
- Bug #48216 [Asn->Csd]: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc
- Bug #48216 [Com]: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc
- Bug #48216 [Com]: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc
- Bug #48216 [Com]: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc
- Bug #48216 [Com]: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc
- Bug #48216 [Csd->ReO]: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc
- Bug #48216 [ReO->Fbk]: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc
- Bug #48216 [Fbk->NoF]: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc
| « previous | php.bugs (#165451) | next » |
|---|