Validation error - but schema is valid...

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Guest

Validation error - but schema is valid...

Post 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...
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post 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
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post 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
Post Reply