I'm using Castor 1.1 and am having problems with the SchemaReader when trying to read an input source. When I call the read() method on SchemaReader to create a Castor schema from an input source, I get this message:

Unable to resolve Schema corresponding to namespace 'http://schemas.xmlsoap.org/soap/encoding/'


An example of a schema I'm trying to read is this:

<schema targetNamespace="urn:uds" xmlns="http://www.w3.org/2001/XMLSchema";>

                        <import 
namespace="http://schemas.xmlsoap.org/soap/encoding/"; />

                        <complexType name="ArrayOf_tns1_Entitlement">
                                <complexContent>
                                        <restriction base="soapenc:Array">
<attribute ref="soapenc:arrayType" wsdl:arrayType="tns1:Entitlement[]"/>
                                        </restriction>
                                </complexContent>
                        </complexType>
                                                </schema>


I'm guessing that this error is due to the schema not having a schemaLocation attribute inside the import tag. When I add this attribute, things work fine, but adding this to each schema I want to read is not an option.

How can I avoid these errors without adding this attribute to every schema I want to read?

_________________________________________________________________
Interest Rates near 39yr lows! $430,000 Mortgage for $1,399/mo - Calculate new payment http://www.lowermybills.com/lre/index.jsp?sourceid=lmb-9632-18466&moid=7581


---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to