As I was doing a web service using NuSOAP in PHP, I encountered an XML Parsing Error saying "XML or text declaration not at start of entity.."
I re-checked my code multiple times but can't find any syntax problem.
I tried searching in google to find answers, but most of the forums are saying about the trailing spaces in the XML format which I believe I don't have.
Given that, I have NO CHOICE but to find it by myself..
After a long trial and error, doing some changes in the script.., removing some extra spaces.., replacing special characters.., removing some extra lines.., etc...
I was able to reach the end of the script and saw the new line after the PHP end tag "?>"..
Still in doubt, but I tried removing it.. and guess what?? it works!! That is a proof that patience and perseverance really works.. hehehe!!
Anyway, I can't believe that NuSOAP missed this.. Hope that their next version was able to resolve this..