FSharp.Data.WsdlProvider icon indicating copy to clipboard operation
FSharp.Data.WsdlProvider copied to clipboard

Case sensitivity in XSD

Open jkone27 opened this issue 3 years ago • 1 comments

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?

jkone27 avatar Feb 04 '22 12:02 jkone27

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.

thinkbeforecoding avatar Feb 04 '22 13:02 thinkbeforecoding