fsprojects / FSharp.Data.WsdlProvider

An implementation of the WsdlProvider compatible with netfx and netcore
Other
24 stars 4 forks source link

Case sensitivity in XSD #13

Open jkone27 opened 2 years ago

jkone27 commented 2 years ago
Screenshot 2022-02-04 at 13 41 19

I have an xsd datasource missing DOCTYPE, can we have some way to ignore it or "add it in the background" if missing?

thinkbeforecoding commented 2 years ago

It seems the problem is that the XSD contains 'doctype' in lowercase, while the XSD format expect DOCTYPE in upper case. This is rejected by the System.Xml.Schema XSD parser, so I will not be able to change this behavior that is by design in .Net.

If you have control over the document, modify the casing of the DOCTYPE declaration.

Otherwise you can make a local copy of the WSDL and XSD documents, fix them, and reference them locally in the WsdlProvider.