KB Article #180691
Couldn't create model for schema |Error: src-resolve.4.2: Error resolving component
Problem
During a wsdl import in API Manager this error is thrown:
ERROR 06/Nov/2019:15:04:20.812 [3df0:000000000000000000000000] Error: src-resolve.4.2: Error resolving component 's:schema'. It was detected that 's:schema' is in namespace 'http://www.w3.org/2001/XMLSchema', but components from this namespace are not referenceable from schema document 'file:/C:/Users/user/abc.wsdl.xml'. If this is the incorrect namespace, perhaps the prefix of 's:schema' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'file:/C:/Users/user/abc.wsdl.xml'. line number: 31 column number: 46 literal system id file:/C:/Users/user/abc.wsdl.xml
ERROR 06/Nov/2019:15:04:20.812 [3df0:000000000000000000000000] Couldn't create model for schema: file:/C:/Users/user/abc.wsdl.xml
Resolution
Cause is: it says the appropriate import tag is required for 's:schema'
The solution is to add
<s:import namespace="http://www.w3.org/2001/XMLSchema" />