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

SHAREPOINT:The list that is referenced here no longer exists

Are you get this error while using the updatelistitems method in SHAREPOINT web service (list.asmx)?
Are you aiming to data stored in a subsite?
If so, the solution is to point the webservice of the subsite directly.
If your main site is http://cia, and your subsite is http://cia/coa, you should point to the webservice:

http://cia/coa/_vti_bin/list.asmx

Pay attention that, sometimes, when [...]

WEBSERVICES TO A SHAREPOINT SUBSITE

Just a small tip that will help you to avoid to loose half a day looking for a solution…

When using Sharepoint throught web services remember to set the WEB REFERENCE to the right website.

If you have to access the main website point to http://<typehereyourdomain>/_vti_bin/lists.aspx but if you need to work on a subsite, remember that you [...]

Cyberactiva web development - Blogged