Re: <xsd:any> misunderstandings?

Hi Saul,

> so my <xsd:schema> element is in an "other" namespace (namely the
> xml-schema ns) and it is valid (it is a validatable element from the
> http://www.w3.org/2001/XMLSchema namespace).

Is the schema for the http://www.w3.org/2001/XMLSchema namespace
imported into the WSDL schema? If it isn't, then the schema processor
won't be able to find a declaration for the xsd:schema element because
it won't be able to find a schema for the
http://www.w3.org/2001/XMLSchema namespace.

Try adding:

<import namespace="http://www.w3.org/2001/XMLSchema"
        schemaLocation="http://www.w3.org/2001/XMLSchema.xsd" />

to the WSDL schema that you're using so that the validator can find
the element declarations to validate against. It might be that just:

<import namespace="http://www.w3.org/2001/XMLSchema" />

will do if the schema validator uses its built-in knowledge about
valid XML Schema elements, or goes off and finds the schema
automatically somehow.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/

Received on Thursday, 8 November 2001 11:31:05 UTC