Page 1 of 1

Validation error - but schema is valid...

Posted: Tue Feb 10, 2004 1:35 pm
by Guest
Hi,

when I try to validate the official WS-I WSDL SOAP binding schema from

http://schemas.xmlsoap.org/wsdl/soap/2003-02-11.xsd

I get the following validation error:

Info: -
Description: E null

Any ideas how to circumvent this?

Thanks for your help.

Kind regards,

Manfred

PS: A validation with XMLSpy shows that the schema is valid...

Posted: Tue Feb 10, 2004 2:10 pm
by george
Hi Manfred,

The problem is that the schema location for the imported http://schemas.xmlsoap.org/wsdl/ namespace is not specified. Changing for instance the import to read:

Code: Select all


  <xs:import namespace = "http://schemas.xmlsoap.org/wsdl/" schemaLocation="http://schemas.xmlsoap.org/wsdl/"/>
removes this error.

Oxygen does not assume anything about your document or about the namespaces you are using so it cannot know what schema you mean by specifying only a namespace.

We thought of allowing the user to specify a mapping from namespaces to schema locations and this will probably go in a future version.

Best Regards,
George

Posted: Tue Feb 10, 2004 2:18 pm
by george
Hi again,

If you need to validate documents against this schema you can set up a catalog and resolve the schema to a local copy that contains the import schemaLocation attibute as in my previous post.

Best Regards,
George