SOAP-ERROR: parsing scheme: cannot import a scheme from ...

I get an error message

SOAP-ERROR: parsing scheme: cannot import scheme from ' http://schemas.xmlsoap.org/soap/encoding/ '

  • The SOAP and xml-rpc modules are installed.
  • I completed this stack overflow question and checked the WSDL.
  • I commented

    <import namespace="http://schemas.xmlsoap.org/soap/encoding/" schemaLocation="http://schemas.xmlsoap.org/soap/encoding/" /> in / app / code / core / Mage / Api / etc / wsdl.xml.

Any other actions? Should I update php, php-soap? It works great with Windows.

+4
source share
4 answers

To run soap successfully, you need php-soap, xml rpc and openssl.

Now it works with comments in the entire project (all xml files)

 //<import namespace="http://schemas.xmlsoap.org/soap/encoding/" schemaLocation="http://schemas.xmlsoap.org/soap/encoding/" /> in entire magento project 
+2
source

Check if schemas.xmlsoap.org is available from your server. Try:

 wget http://schemas.xmlsoap.org/soap/encoding/ 

if you get an error, for example, "host not found", check your dns!

+2
source

You need to use SOAP_1_1 in your soap client.

0
source

I also got the following errors on my localhost wamp server

 Warning: SoapClient::SoapClient() [soapclient.soapclient]: I/O warning : failed to load external entity "http://schemas.xmlsoap.org/soap/encoding/ Fatal error: SOAP-ERROR: Parsing Schema: can't import schema from 'http://schemas.xmlsoap.org/soap/encoding/' 

I did not include open ssl and xml rpc, as mentioned by Angelin Nadar . As soon as I turned it on, the problem is resolved for me.

0
source

Source: https://habr.com/ru/post/1392936/


All Articles