And this doesn't pass:

<s:schema elementFormDefault="qualified" targetNamespace="http://www.27seconds.com/Holidays/GBEAW/" xmlns:http=" http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:s=" http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc=" http://schemas.xmlsoap.org/soap/encoding/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:tns=" http://www.27seconds.com/Holidays/GBEAW/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    <!-- s:import namespace=" http://www.w3.org/2001/XMLSchema"/ -->
    <s:element name="GetHolidaysForDateRange" xmlns:s="http://www.w3.org/2001/XMLSchema">
        <s:complexType xmlns:s=" http://www.w3.org/2001/XMLSchema">
            <s:sequence xmlns:s="http://www.w3.org/2001/XMLSchema">
                <s:element maxOccurs="1" minOccurs="1" name="startDate" type="s:dateTime" xmlns:s="http://www.w3.org/2001/XMLSchema "/>
                <s:element maxOccurs="1" minOccurs="1" name="endDate" type="s:dateTime" xmlns:s="http://www.w3.org/2001/XMLSchema "/>
            </s:sequence>
        </s:complexType>
    </s:element>
    <s:element name="GetHolidaysForDateRangeResponse" xmlns:s=" http://www.w3.org/2001/XMLSchema">
        <s:complexType xmlns:s="http://www.w3.org/2001/XMLSchema">
            <s:sequence xmlns:s=" http://www.w3.org/2001/XMLSchema">
                <s:element maxOccurs="1" minOccurs="0" name="GetHolidaysForDateRangeResult" xmlns:s=" http://www.w3.org/2001/XMLSchema">
                    <s:complexType xmlns:s="http://www.w3.org/2001/XMLSchema ">
                        <s:sequence xmlns:s="http://www.w3.org/2001/XMLSchema">
                            <s:element ref="s:schema" xmlns:s=" http://www.w3.org/2001/XMLSchema"/>
                            <s:any xmlns:s="http://www.w3.org/2001/XMLSchema "/>
                        </s:sequence>
                    </s:complexType>
                </s:element>
            </s:sequence>
        </s:complexType>
    </s:element>
    <s:element name="GetHolidaysForMonth" xmlns:s="http://www.w3.org/2001/XMLSchema">
        <s:complexType xmlns:s=" http://www.w3.org/2001/XMLSchema">
            <s:sequence xmlns:s="http://www.w3.org/2001/XMLSchema">
                <s:element maxOccurs="1" minOccurs="1" name="year" type="s:int" xmlns:s=" http://www.w3.org/2001/XMLSchema"/>
                <s:element maxOccurs="1" minOccurs="1" name="month" type="s:int" xmlns:s=" http://www.w3.org/2001/XMLSchema"/>
            </s:sequence>
        </s:complexType>
    </s:element>
    <s:element name="GetHolidaysForMonthResponse" xmlns:s=" http://www.w3.org/2001/XMLSchema">
        <s:complexType xmlns:s="http://www.w3.org/2001/XMLSchema">
            <s:sequence xmlns:s="http://www.w3.org/2001/XMLSchema">
                <s:element maxOccurs="1" minOccurs="0" name="GetHolidaysForMonthResult" xmlns:s=" http://www.w3.org/2001/XMLSchema">
                    <s:complexType xmlns:s="http://www.w3.org/2001/XMLSchema ">
                        <s:sequence xmlns:s="http://www.w3.org/2001/XMLSchema">
                            <s:element ref="s:schema" xmlns:s=" http://www.w3.org/2001/XMLSchema"/>
                            <s:any xmlns:s="http://www.w3.org/2001/XMLSchema "/>
                        </s:sequence>
                    </s:complexType>
                </s:element>
            </s:sequence>
        </s:complexType>
    </s:element>
    <s:element name="GetHolidaysForYear" xmlns:s="http://www.w3.org/2001/XMLSchema">
        <s:complexType xmlns:s=" http://www.w3.org/2001/XMLSchema">
            <s:sequence xmlns:s="http://www.w3.org/2001/XMLSchema">
                <s:element maxOccurs="1" minOccurs="1" name="year" type="s:int" xmlns:s=" http://www.w3.org/2001/XMLSchema"/>
            </s:sequence>
        </s:complexType>
    </s:element>
    <s:element name="GetHolidaysForYearResponse" xmlns:s=" http://www.w3.org/2001/XMLSchema">
        <s:complexType xmlns:s="http://www.w3.org/2001/XMLSchema">
            <s:sequence xmlns:s="http://www.w3.org/2001/XMLSchema">
                <s:element maxOccurs="1" minOccurs="0" name="GetHolidaysForYearResult" xmlns:s=" http://www.w3.org/2001/XMLSchema">
                    <s:complexType xmlns:s="http://www.w3.org/2001/XMLSchema ">
                        <s:sequence xmlns:s="http://www.w3.org/2001/XMLSchema">
                            <s:element ref="s:schema" xmlns:s=" http://www.w3.org/2001/XMLSchema"/>
                            <s:any xmlns:s="http://www.w3.org/2001/XMLSchema "/>
                        </s:sequence>
                    </s:complexType>
                </s:element>
            </s:sequence>
        </s:complexType>
    </s:element>
    <s:element name="GetHolidayDate" xmlns:s="http://www.w3.org/2001/XMLSchema">
        <s:complexType xmlns:s=" http://www.w3.org/2001/XMLSchema">
            <s:sequence xmlns:s="http://www.w3.org/2001/XMLSchema">
                <s:element maxOccurs="1" minOccurs="0" name="holidayName" type="s:string" xmlns:s=" http://www.w3.org/2001/XMLSchema"/>
                <s:element maxOccurs="1" minOccurs="1" name="year" type="s:int" xmlns:s=" http://www.w3.org/2001/XMLSchema"/>
            </s:sequence>
        </s:complexType>
    </s:element>
    <s:element name="GetHolidayDateResponse" xmlns:s=" http://www.w3.org/2001/XMLSchema">
        <s:complexType xmlns:s="http://www.w3.org/2001/XMLSchema">
            <s:sequence xmlns:s="http://www.w3.org/2001/XMLSchema">
                <s:element maxOccurs="1" minOccurs="1" name="GetHolidayDateResult" type="s:dateTime" xmlns:s=" http://www.w3.org/2001/XMLSchema"/>
            </s:sequence>
        </s:complexType>
    </s:element>
    <s:element name="GetHolidaysAvailable" xmlns:s=" http://www.w3.org/2001/XMLSchema">
        <s:complexType xmlns:s="http://www.w3.org/2001/XMLSchema"/>
    </s:element>
    <s:element name="GetHolidaysAvailableResponse" xmlns:s="http://www.w3.org/2001/XMLSchema">
        <s:complexType xmlns:s=" http://www.w3.org/2001/XMLSchema">
            <s:sequence xmlns:s="http://www.w3.org/2001/XMLSchema">
                <s:element maxOccurs="1" minOccurs="0" name="GetHolidaysAvailableResult" xmlns:s="http://www.w3.org/2001/XMLSchema">
                    <s:complexType xmlns:s="http://www.w3.org/2001/XMLSchema">
                        <s:sequence xmlns:s=" http://www.w3.org/2001/XMLSchema">
                            <s:element ref="s:schema" xmlns:s="http://www.w3.org/2001/XMLSchema"/>
                            <s:any xmlns:s="http://www.w3.org/2001/XMLSchema"/>
                        </s:sequence>
                    </s:complexType>
                </s:element>
            </s:sequence>
        </s:complexType>
    </s:element>
    <s:element name="DataSet" nillable="true" xmlns:s=" http://www.w3.org/2001/XMLSchema">
        <s:complexType xmlns:s="http://www.w3.org/2001/XMLSchema">
            <s:sequence xmlns:s=" http://www.w3.org/2001/XMLSchema">
                <s:element ref="s:schema" xmlns:s="http://www.w3.org/2001/XMLSchema "/>
                <s:any xmlns:s="http://www.w3.org/2001/XMLSchema"/>
            </s:sequence>
        </s:complexType>
    </s:element>
    <s:element name="dateTime" type="s:dateTime" xmlns:s="http://www.w3.org/2001/XMLSchema"/>
</s:schema>


ValidationException: <element ref="s:schema"> is not resolvable.
    at org.exolab.castor.xml.schema.ElementDecl.validate(ElementDecl.java:768)
    at org.exolab.castor.xml.schema.Group.validate (Group.java:471)
    at org.exolab.castor.xml.schema.ComplexType.validate(ComplexType.java:816)
    at org.exolab.castor.xml.schema.ElementDecl.validate(ElementDecl.java:805)
    at org.exolab.castor.xml.schema.Group.validate (Group.java:471)
    at org.exolab.castor.xml.schema.ComplexType.validate(ComplexType.java:816)
    at org.exolab.castor.xml.schema.ElementDecl.validate(ElementDecl.java:805)

Reply via email to