Unexpected EOF in prolog Error
22,004
Are you sure your massage is properly escaped and without any forbidden characters? I got that message a lot from parser if I forgot about it.
Author by
jnasty
Updated on July 09, 2022Comments
-
jnasty almost 2 years
I'm attempting to send a SOAP Message to another web service, however the response I get back throws an error: "Couldn't create SOAP message due to exception: XML reader error: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog".
The web service is written in Java, with a client written in VB.NET.
Case SoapMessageStage.BeforeDeserialize readStr = New StreamReader(oldStream) writeStr = New StreamWriter(newStream) soapMsg1 = readStr.ReadToEnd() xDoc.LoadXml(soapMsg1)