Topic
  • 1 reply
  • Latest Post - ‏2013-07-12T18:00:14Z by TonyC2nd
TonyC2nd
TonyC2nd
6 Posts

Pinned topic Error -015 when importing a XML schema

‏2013-07-11T14:51:19Z |

Hello,

IBM Websphere Transformation Extender Design Studio Version: 8.3.0.5 Build id: 8

I am trying to import a .XSD file; this file has:

<xsd:schema

xmlns="http://customer.endpoint.earthport.com/api/merchant/v2/components/identityBase"

targetNamespace="http://customer.endpoint.earthport.com/api/merchant/v2/components/identityBase"

xmlns:epcore="http://customer.endpoint.earthport.com/api/merchant/v2/components/core"

xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"

version="2.0">

 

<xsd:import

namespace="http://customer.endpoint.earthport.com/api/merchant/v2/components/core"

schemaLocation="coreTypes-2.0.xsd" />

...

I am getting this error:

ERROR (-15)[The component [type{http://customer.endpoint.earthport.com/api/merchant/v2/components/core}UIDType] referenced by [element{http://customer.endpoint.earthport.com/api/merchant/v2/components/identityBase}payerIdentityID[961]] could not be resolved]
CODE STACK:
com.ibm.websphere.dtx.xmlsimp.SchemaException
 at com.ibm.websphere.dtx.xmlsimp.MetadataValidator.validateUids(Unknown Source)
 at com.ibm.websphere.dtx.xmlsimp.MetadataValidator.validate(Unknown Source)
 at com.ibm.websphere.dtx.xmlsimp.XmlSchemaImporter.importXmlSchema(Unknown Source)
 at com.ibm.websphere.dtx.xmlsimp.XmlSchemaImporter.generateMtsFile(Unknown Source)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
 at java.lang.reflect.Method.invoke(Method.java:600)
 at com.ibm.websphere.dtx.ui.importers.xmlschema.XMLSchemaImporter.generateTree(Unknown Source)
 at com.ibm.websphere.dtx.ui.importers.dialogs.WTXImportWizard.buildTypeTree(Unknown Source)
 at com.ibm.websphere.dtx.ui.importers.dialogs.WTXImportWizard$2.run(Unknown Source)
 at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
PARSE STACK:
EMPTY OR NOT AVAILABLE

it seems the importer is not finding the  coreTypes-2.0.xsd member that is in the same folder thtat this XSD.

I had imported coreTypes-2.0.xsd and it was ok - it does not have any imports.

Thank you for your help,

Tony

  • TonyC2nd
    TonyC2nd
    6 Posts

    Re: Error -015 when importing a XML schema

    ‏2013-07-12T18:00:14Z  

    Never mind,

    the vendor XSD had schemaLocation="coreTypes-2.0.xsd"

    but the provided file is named "coreTypes-2 0.xsd" (no '.' between '2.0')

    after fixing the import file name it imported without errors.

    Tony