I'm working on a Symfony project and we need to integrate the BING api from Microsoft. They supply the following classes to help with the soap calls:
When those classes are copied to my vendor folder and then ReportingClasses.php included in my project class, I get the error that the Namespace declaration statement has to be the very first statement in the script.
Looking at the script in my editor, I can clearly see that this condition is met. What gives?
After beating my head against this for a few hours, the only lead I had left was that it was a file encoding issue.
My solution was very simple:
Et Voila! Error gone.