Content is not allowed in prolog
I'm working with creating a Web Service Provider. I am attempting to use an XML Schema derived from an XSD file. When I do I receive the following error when attempting to save:
Error found while executing request:
Error in updating web service publishing parameters : Content is not allowed in prolog.
-
This seems to be an encoding issue with the xsd file.
Try opening your xsd file in some xml editor for example: Stylus Studio and try changing its encoding to UTF-8.0 -
I modified my original XSD to change "utf" to upper case "UTF" (it was already utf-8 encoded) but it still didn't work. I next hex compared my edited file to what you provided and found three bytes at the beginning of the file that did not show in the Visual Studio editor nor Notepad. I'm guessing Stylus Studio may have cleaned them.
0
Please sign in to leave a comment.
Comments
2 comments