Kataku Kataku - 6 days ago 5
C# Question

org.xml.sax.SAXParseException: Content is not allowed in prolog when consuming service in .net

I am getting this error: org.xml.sax.SAXParseException: Content is not allowed in prolog. when consuming a goberment webservice, the thing is that everything was working fine until last friday.
the web service is

https://palena.sii.cl/DTEWS/CrSeed.jws?WSDL

and it returns a seed that needs to be signed. the strange thing is if you consume this service with a test program like .net webservice studio it throws the error, but if you consumes this service with http://www.soapclient.com/soaptest.html it works fine.

any ideas?

Answer

Problem is an Windows Update (KB3147461). 2 solutions:

  1. Uninstall it and try again.
  2. Is it on Windows 10? Update you application to Framework 4.6.