Why do I get an invalid xml declaration error? - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Why do I get an invalid xml declaration error?

bomotoshobomotosho Posts: 10Member
Hi. I have a client-side WinForms which accesses tables within MySQL Server via a PHP server script. I had imported the wsdl into C++ Builder and had been working fine until now. The error message I received is strange. The error goes thus:

[code]Invalid XML Declaration.
<?xml version="1.0" encoding="UTF-8" ?>[/code]

I have compared the wsdl with other working versions and can't point out a difference. An altova check declares it as valid. Moreover, it was the same wsdl I had been using before now. I have also restarted the system with no result. Can someone please tell me what the problem could be?



  • bomotoshobomotosho Posts: 10Member
    The problem was that a space had been inadvertently inserted before the PHP server-script started. That meant C++ Builder was receiving a space character rather than the appropriate header.

Sign In or Register to comment.