Error loading WSDL Unknown namespace http://www.w3.org/2001/XMLSchema

This question is answered

Hello Comunity,

I am receiving the same error I have seen others encounter when trying to import a WSDL into SAP.

I have checked with toosl such as XML Spy and the XML is formatted correctly. I have also setup other external web services such as Global Weather on http://www.webserviceX.NET and everything worked perfectly.

Tags:

wsdl

Former Member

March 22, 2012 at 10:09 AM

0
Likes

I'm not big fun of XML Spy but what I can see from the WSDL itself there is really bug as the Oxygen indicates:

<s:element ref="s:schema"/>

When defining element in XSD you can use "ref" attribute to refer some other existing element in the same XSD but in case of element "GroupDataSet" in your WSDL it's referred as s:schema which is not element at all. Even the namespace is refered incorrectly. Even with element "schema" you'd have to have there "tns:schema" and not "s:schema" because targetNamespace is tns=>"http://tempuri.org/SDK/SDK".

So I say the WSDL maybe correct but the XSD inside of it is not. This is most probably reason why you cannot import it since SAP system tries to generate data dictionary objects based on included XSD but it cannot do that if it's incorrect XSD :-)

Good luck with the email system. I hope this will help you to get to the bottom of the problem.