#298 stupid error with XMLSchema.py

open
nobody
SOAPpy (75)
5
2011-05-24
2011-05-24
No

I got a wsdl which got:
<xsd:import namespace="http://services.sapo.pt/definitions" schemaLocation="http://hostname/Metadata/Schema/ESBCredentials"/>
<xsd:include schemaLocation="http://hostname/Metadata/Schema/Photos_Types?culture=pt"/>
SchemaError: unknown file type http://hostname/Metadata/Schema/ESBCredentials

xsd files do not have to have extension xsd ,

this is not loaded by a stupid error , so please remove this lines from XMLSchema.py

if not url.endswith('xsd'):
raise SchemaError, 'unknown file type %s' %url

Discussion