Why do I get an invalid xml declaration error?

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.
Line:1
<?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?

Thanks.

Comments

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

Howdy, Stranger!

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

Categories

In this Discussion