Restriction of anySimpleType is not allowed exception.

S

Sarika Jathar

Hi all,

I am validating a WSDL file using the w3c schema specified at
http://www.w3.org/2001/XMLSchema.xsd.

When I am adding this schema to the XmlSchemaCollection
as follows,

XmlValidatingReader.Schemas.Add(XmlSchema.Read(
new FileStream(@"XmlSchema.xsd", FileMode.Open), null));

Then I am getting an exception,

"Restriction of anySimpleType is not allowed. An error occurred at
http://www.w3.org/2001/XMLSchema.xsd, (1447, 5)."

Please help me out.

I'm sure, we will get some feedback on the issue soon.
 
D

Dan Rogers

Hi,

I'll take your message at face value - you are trying to validate a WSDL
file to see if it is a valid XML Schema file. Unfortunately, you can't
validate WSDL as Schema. WSDL files are not schemas.

I hope this helps

Dan Rogers
Microsoft Corporation
--------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,828
Latest member
LauraCastr

Latest Threads

Top