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="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>Sender</faultcode>
<faultstring>Invalid XML</faultstring>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Maybe someone can help me.
Thanks in advance...
Fritz
+3
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('http://example.com/api/v2_soap/?wsdl');
to
$proxy = new SoapClient('https://example.com/api/v2_soap/?wsdl');
+1
source to share