tags:

views:

29

answers:

1
+2  A: 

I'm not completely sure of what I am talking about as far as I've never used the API, but you should try to look at the end of the file which generates your XML for a closing '?>'. If there is this closing PHP marker, remove it and try again you API call...

In Magento, PHP file should never be ended by a closing php marker '?>'.

edit: as said in comments, also look at spaces before the opening tag '<?php'.

Hugues ALARY
wow, thanks a lot Hugues, it was my file that had the ?>. Why should it never have that and why would the fact the end of my file has that create this issue when it never even got through the call to $client = new SoapClient()
dan.codes
Oh wait, I might of been wrong, I was trying to access a different wsdl file from a different domain and that worked but then I put my site url for the wsdl and I got the same error again.
dan.codes
So yeah I am still stuck with this. nothing in magento that generates the response has a ?> in it
dan.codes
Thanks Hugues, I found that it was a space above <?php in one of my observer classes that get called pre controller dispatch.
dan.codes
Sorry for this late comment, happy to see your problem solve ;)
Hugues ALARY