Invalid XML Magento Java Soap response

I am writing in a soap client for magento using apache cxf. So far, everything works great like creating products, changing categories, updating products, etc. Well it works here on my local machine or a magento installation on a local network.

So, I created a magento store on a server on the web. All api calls worked except one, creating multimedia products.

This is the response from the server.

<SOAP-ENV:Envelope xmlns:SOAP-ENV="">
            <faultstring>Invalid XML</faultstring>


Maybe someone can help me.

Thanks in advance...



source to share

2 answers

I had the same problem. What fixed it for me was to make the https call as I have a .htaccess restart which forces all traffic over SSL.

If you are doing something like rewriting urls in https, in your code, change the url

$proxy = new SoapClient('');



$proxy = new SoapClient('');




I found a solution to this problem.

This can be resolved by handling messages in the apache cxf client.

HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy();




All Articles