Hi all,
I'm trying to read following schema:
<s:schema elementFormDefault="qualified" targetNamespace="http://www.27seconds.com/Holidays/GBEAW/
" xmlns:s="http://www.w3.org/2001/XMLSchema">
<s:import namespace="http://www.w3.org/2001/XMLSchema
"/>
<s:element name="GetHolidaysForDateRange">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="startDate" type="s:dateTime"/>
<s:element minOccurs="1" maxOccurs="1" name="endDate" type="s:dateTime"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetHolidaysForDateRangeResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="GetHolidaysForDateRangeResult">
<s:complexType>
<s:sequence>
<s:element ref="s:schema"/>
<s:any/>
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetHolidaysForMonth">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="year" type="s:int"/>
<s:element minOccurs="1" maxOccurs="1" name="month" type="s:int"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetHolidaysForMonthResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="GetHolidaysForMonthResult">
<s:complexType>
<s:sequence>
<s:element ref="s:schema"/>
<s:any/>
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetHolidaysForYear">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="year" type="s:int"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetHolidaysForYearResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="GetHolidaysForYearResult">
<s:complexType>
<s:sequence>
<s:element ref="s:schema"/>
<s:any/>
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetHolidayDate">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="holidayName" type="s:string"/>
<s:element minOccurs="1" maxOccurs="1" name="year" type="s:int"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetHolidayDateResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="GetHolidayDateResult" type="s:dateTime"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetHolidaysAvailable">
<s:complexType/>
</s:element>
<s:element name="GetHolidaysAvailableResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="GetHolidaysAvailableResult">
<s:complexType>
<s:sequence>
<s:element ref="s:schema"/>
<s:any/>
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="DataSet" nillable="true">
<s:complexType>
<s:sequence>
<s:element ref="s:schema"/>
<s:any/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="dateTime" type="s:dateTime"/>
</s:schema>
with this result:
Caused by: Unable to resolve Schema corresponding to namespace 'http://www.w3.org/2001/XMLSchema'.
at org.exolab.castor.xml.schema.reader.Sax2ComponentReader.startElement
(Sax2ComponentReader.java:256)
at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1340)
at org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1197)
at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1862)
at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1238)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome
(XMLDocumentScanner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1035)
at org.exolab.castor.xml.schema.reader.ImportUnmarshaller.<init>(ImportUnmarshaller.java:196)
at
org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.startElement(SchemaUnmarshaller.java:523)
at org.exolab.castor.xml.schema.reader.Sax2ComponentReader.startElement(Sax2ComponentReader.java:253)
at org.apache.xerces.parsers.SAXParser.startElement
(SAXParser.java:1340)
at org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1197)
at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1862)
at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1238)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at org.apache.xerces.framework.XMLParser.parse
(XMLParser.java:1035)
at org.exolab.castor.xml.schema.reader.SchemaReader.read(SchemaReader.java:248)
It is strange to me that ns http://www.w3.org/2001/XMLSchema
is not found. Is it ok? What is wrong with this schema?
I work with 0.9.6 but the same result was reproduced with 1.0M3 as well.
10x in advance,
Stoil
- [castor-user] Unable to resolve Schema corresponding to nam... stoil valchkov
- [castor-user] Fwd: Unable to resolve Schema correspond... stoil valchkov
- Re: [castor-user] Fwd: Unable to resolve Schema co... Stephen Bash
- Re: [castor-user] Fwd: Unable to resolve Schem... stoil valchkov
- [castor-user] Fwd: Unable to resolve Schema correspond... stoil valchkov

