Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing Schema: can't import schema from 'http://schemas.xmlsoap.org/soap/encoding/'
First, I am sorry to say I put these question here cause so many same question in stackoverflow. But it seems not any fit for me.
I use Magento SOAP2 API for times, this error not happed often. But it keeps make a fatal error when I run my script today.
I have looked up for some method to solve this problem, for example, some articles told me to change this code in /app/code/core/Mage/Api/etc/wsdl.xml
<import namespace="http://schemas.xmlsoap.org/soap/encoding/" schemalocation="http://schemas.xmlsoap.org/soap/encoding/">
</import>
to this
<!--
<import namespace="http://schemas.xmlsoap.org/soap/encoding/" schemaLocation="http://schemas.xmlsoap.org/soap/encoding/" />
-->
I followed this, but it make another error like below,
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing Schema: unexpected <import> in schema
Then I have no idea what's wrong, cause this script is always running perfectly but today and I even do not change any line of the code. My question is,
1, Any method to solve it?
2, Can I make this xmlsoap.org xml file to localhost or my own server so that my script will not depend on a file out my server.
Thank you in advance!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…