DTD is prohibited in this XML document.

0
Hi I have tried importing a wsdl into mendix that contains a reference to an xsd i.e import namespace="http://www.w3.org/2001/XMLSchema schemaLocation="http://www.w3.org/2001/XMLSchema.xsd that has reference to a !DOCTYPE xs:schema PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN" "XMLSchema.dtd" Here is the error message I am receiving. Myself not being the brightest crayon in box I seek your advice in resolution. System.InvalidOperationException: The document was understood, but it could not be processed. - The WSDL document contains links that could not be resolved. - DTD is prohibited in this XML document. at System.Web.Services.Discovery.DiscoveryClientProtocol.DiscoverAny(String url) at Mendix.Modeler.WebServices.WsdlDescription.ResolveImports(String url) in c:\cygwin\home\autobuild\build\Mendix-3.0\modeler\Modeler\WebServices\Call\WsdlDescription.cs:line 234
asked
1 answers
0

It seems the WSDL you're trying to import explicitly imports a schema that defines XSD (the schema at "http://www.w3.org/2001/XMLSchema.xsd"). This is absolutely superfluous, as XSD is recognized automatically when importing a WSDL, and in this case even causes the WSDL to be rejected, due to the presence of a DTD import in the referenced schema. Removing the schema reference from the WSDL should solve this error.

answered