Bug #48216 [Com]: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc

From: Date: Tue, 03 Apr 2012 09:50:58 +0000
Subject: Bug #48216 [Com]: 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-169185@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
 Comment by:         scraly at gmail dot com
 Reported by:        mark at everytruckjob dot com
 Summary:            PHP Fatal error:  SOAP-ERROR: Parsing WSDL: Extra
                     content at the end of the doc
 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:

I have the same issue with linux, php 5.5.3.6-13ubuntu3.6


Previous Comments:
------------------------------------------------------------------------
[2011-11-23 10:50:20] dmitry@php.net

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.



------------------------------------------------------------------------
[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.

------------------------------------------------------------------------


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)

« previous php.bugs (#169185) next »