Categories

PHP error on webservices: extra content at the end of the document

I was trying to test some webservices using PHP 5.3.0 as client.
Most of them were working properly, but One gave me the following error:

Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn’t load from ‘http://thisistheUrlOfTheWsdl?wsdl’ : Extra content at the end of the document

After some investigations, I realised that this is probably a bug of PHP: I’ve found out that the webservice is working if I access it using PHP 5.2.10.

The solution I found is to create a local copy of the WSDL file (it’ll be something mywsdl.xml) and reference the local copy instead of the original wsdl url.

Comments are closed.

Cyberactiva web development - Blogged