Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6239007
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T11:19:05+00:00 2026-05-24T11:19:05+00:00

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing Schema: can’t import schema from ‘http://schemas.xmlsoap.org/soap/encoding/’

  • 0
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!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T11:19:05+00:00Added an answer on May 24, 2026 at 11:19 am

    First of all, please never tamper with the default elements of any Magento API V2 WSDL Configuration file. It’s a basic rule.

    Please keep in mind to write these following elements at the beginning of each custom WSDL file or make sure that these following elements are present at the beginning of the WSDL file of your target existing module:-

    1. “definition” element (<definitions> – start tag)
    2. “types” element (<types> – start tag)
    3. “schema” element (<schema> – start tag)
    4. “import” element (<import /> – singleton tag, with no end tag)

    Then you can continue with defining the Complex Data Types of the Magento API V2 for that Custom Module.

    You can very well get the concept of all these by looking into some of the existing Magento API V2 WSDL files.


    Now coming back to your questions…

    1. Any method to solve it?
    As I said before, please maintain the above-mentioned elements definitions at the beginning of your WSDL file.

    The “import” statement should have been:-
    <import namespace="http://schemas.xmlsoap.org/soap/encoding/" schemaLocation="http://schemas.xmlsoap.org/soap/encoding/" />
    with no end tag.
    Also the attribute name is “schemaLocation” & not “schemalocation“. Follow the Camel Casing please.


    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?

    Yes you can, but you need to know & maintain two vital points:-

    1. Both of the attributes “namespace” & “schemaLocation” must be of type URI, according to the W3C specifications. So your local files for both of these attributes must also be accessible in your local browser, using HTTP protocol.
    2. If you are maintaining it in your local hard disk, then you are forgetting about one golden rule of upgradation, for Schema of the SOAP/1.1 encoding file. This is because if (only if) W3C upgrades this file in this same URI, then your Magento will be able to take it automatically if the general URI is provided; otherwise you will need to download that upgraded file again to your server.

    Other than these two major points, everything is okay & you are good to go.


    Nevertheless, I hope that I have answered all your queries. Hope it helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

PHP Fatal error: Uncaught SoapFault exception: [soap:Server] System.Web.Services.Protocols.SoapE xception: Server was unable to process
How to catch an error from a SOAP? How can I avoid the fatal
so I encountered this error from Zend Framework: Fatal error: Uncaught exception 'Zend_Loader_PluginLoader_Exception' with
Fatal error: Uncaught SoapFault exception: [103] Attribute include_in_menu is required. was throwed when I
I get an ugly exception from Zend Translate: Fatal error: Uncaught exception 'Zend_Translate_Exception' with
Fatal error: Uncaught exception 'EppCommandsExceptions' with message 'Required parameter missing' The line in question:
I get this error occasionally: Fatal error: Uncaught Exception: 190: Error validating access token:
I've got this error: Fatal error: Uncaught exception 'MySQLiQuery_Exception' with message 'Illegal mix of
I get the following error message: Fatal error: Uncaught exception 'Zend_Exception' with message 'File
By default error page in ZF looks like this: Fatal error: Uncaught exception 'Zend_Form_Exception'

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.