Hi members,

I am using the castor api for unmarshalling WSDL schema definitions.
A problem occured with a WSDL schema definition that imports
the http://www.w3.org/2001/XMLSchema. The unmarshalling fails.
To reproduce the import I wrote the following code:


SchemaReader schemaReader = new
SchemaReader("http://www.w3.org/2001/XMLSchema.xsd";);
schemaReader.setValidation(false);
Schema schema = schemaReader.read();

which produces:

java.lang.IllegalArgumentException: getSimpleType: the simple type
'derivationControl' is not a built-in type as defined in XML Schema
specification.
        at org.exolab.castor.xml.schema.Schema.getSimpleType(Schema.java:923)
        at org.exolab.castor.xml.schema.Schema.getType(Schema.java:1389)
        at
org.exolab.castor.xml.schema.reader.SimpleTypeRestrictionUnmarshaller.<init>(SimpleTypeRestrictionUnmarshaller.java:120)
        at
org.exolab.castor.xml.schema.reader.SimpleTypeUnmarshaller.startElement(SimpleTypeUnmarshaller.java:232)
        at
org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.startElement(SchemaUnmarshaller.java:461)
        at
org.exolab.castor.xml.schema.reader.Sax2ComponentReader.startElement(Sax2ComponentReader.java:253)
        at
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:411)
        at
org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:778)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:823)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1543)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:348)
        at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:539)
        at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:595)
        at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
        at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1125)
        at
org.exolab.castor.xml.schema.reader.SchemaReader.read(SchemaReader.java:242)
        at Test.main(Test.java:35)

Can anybody give me a hint why castor fails or how to avoid failure?

Thank you in advance

Thomas Wagner



________________________________________________________________________________
Este mensaje se dirige exclusivamente a su destinatario y puede contener
informaci�n privilegiada o CONFIDENCIAL. Si no es vd. el destinatario
indicado, queda notificado de que la utilizaci�n, divulgaci�n y/o copia
sin autorizaci�n est� prohibida en virtud de la legislaci�n vigente.
Si ha recibido este mensaje por error, le rogamos que nos lo comunique
inmediatamente por esta misma v�a y proceda a su destrucci�n.

This message is intended exclusively for its addressee and may contain
information that is CONFIDENTIAL and protected by professional
privilege.
If you are not the intended recipient you are hereby notified that any
dissemination, copy or disclosure of this communication is strictly
prohibited by law. If this message has been received in error, please
immediately notify us via e-mail and delete it.
________________________________________________________________________________



----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-user

Reply via email to