hi stoil,

i face the same problem when i store the
XMLSchema.xsd,XMLSchema.dtd,xml.xsd file locally. did
you find any solution of this problem?

Also for me
schemaLocation="http://www.w3.org/2001/XMLSchema.xsd"/>
gives ConnectException, so i modified it to
<schemaLocation="file:///C:/XMLSchema.xsd"/>. Why do i
get ConnectException. I can access internet from my
machine though. Any setting Castor requires?

Thanks a ton,
Regards,
Deepak


--- stoil valchkov <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I tried to load schema from wsdl
>
http://www.holidaywebservice.com/Holidays/GBNIR/GBNIRHolidayService.asmx?WSDL
> First problem is <s:import
> namespace="http://www.w3.org/2001/XMLSchema"/>. Ok
> 
> I've modified it little bit (but IMHO we should not
> need this):
> <s:import
> namespace="http://www.w3.org/2001/XMLSchema";
>
schemaLocation="http://www.w3.org/2001/XMLSchema.xsd"/>
> 
> Then this problem appears:
> 
> java.lang.IllegalArgumentException: getSimpleType:
> the simple type
> 'formChoice' is not a built-in type as defined in
> XML Schema
> specification.
>     at
>
org.exolab.castor.xml.schema.Schema.getSimpleType(Schema.java:1289)
>     at
>
org.exolab.castor.xml.schema.Schema.addSimpleType(Schema.java:583)
>     at
>
org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.endElement(SchemaUnmarshaller.java:643)
>     at
>
org.exolab.castor.xml.schema.reader.Sax2ComponentReader.endElement(Sax2ComponentReader.java:198)
>     at
>
org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1392)
>     at
>
org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1436)
>     at
>
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1205)
>     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)
> 
> But mentioned type is specified in schema for
> schemas:
> 
> <xs:simpleType name="formChoice">
> -
>       <xs:annotation>
> <xs:documentation>
>    A utility type, not for public
> use</xs:documentation>
> </xs:annotation>
> -
>       <xs:restriction base="xs:NMTOKEN">
> <xs:enumeration value="qualified"/>
> <xs:enumeration value="unqualified"/>
> </xs:restriction>
> </xs:simpleType>
> 
> Mentioned as not for public use, but I don't want to
> use it :)
> So may be the root of the problem is searching
> location for
> namespace="http://www.w3.org/2001/XMLSchema"; .
> 
> Best regards,
> Stoil
> 
> -------------------------------------------------
> If you wish to unsubscribe from this list, please
> send an empty message to the following address:
> 
> [EMAIL PROTECTED]
> -------------------------------------------------
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-------------------------------------------------
If you wish to unsubscribe from this list, please 
send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------

Reply via email to