Mitch,

You could also provide an EntityResolver implementation that resolves the namespace of the soap schema that you are trying to import.

--Keith

Martin Gainty wrote:
mitch-
you are speaking of an include scenario
http://www.xfront.com/ZeroOneOrManyNamespaces.html

this comment

When you are reusing schemas that someone else created you should <import> those schemas, i.e., use the Heterogeneous Namespace design. It is a not a good idea to copy those components into your namespace, for two reasons: (1) soon your local copies would get out of sync with the other schemas, and (2) you lose interoperability with any existing applications that process the other schema's components.

HTH,
Martin
--------------------------------------------------------------------------- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. --------------------------------------------------------------------------- Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire. ----- Original Message ----- From: "mitch finegold" <[EMAIL PROTECTED]>
To: <user@castor.codehaus.org>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, March 27, 2007 8:12 PM
Subject: [castor-user] SchemaReader - schemaLocation


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






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

   http://xircles.codehaus.org/manage_email

Reply via email to