Magento Java soap invalid XML response
•
Java
I am using Apache CXF to write magento.xml on the soap client
So I set up a Magento store on the online server Except for the creation of a product media, all calls to the API are valid
This is a 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
Thank you in advance
Fritz
Solution
I had the same problem The fix for me is to call HTTPS because I have one Htaccess is rewritten to force all traffic to pass SSL
If you are doing something like rewriting the URL to HTTPS, change the URL in the code
$proxy = new SoapClient('http://example.com/api/v2_soap/?wsdl');
to
$proxy = new SoapClient('https://example.com/api/v2_soap/?wsdl');
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码
