Skip to main content

SchemaFactory rejects valid schema collection?

1 reply [Last post]
Joined: 2006-01-01

I have a WSDL that embeds a set of valid, inter-connected, schemas. They have elements that interconnect them.

I DOM elements for these schemas and feed them into SchemaFactory to create a validator. It rejects them, claiming that there is a missing import.

Tracing through the code, it looks like a bug, in which it is not correctly resolving the intra-schema references (import elements with just a namespace, and no other attributes). In particular, there seems no way to use the resolver to indicate that there's already an element that describes the schema -- only a way to hand back bytes. We could circulate that way indefinitely.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2004-12-15

Am I understanding it correctly that it left out all other attributes except namespace declaration in your case? Could you give a little more details? e.g. some sample code/xml fragment.