File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
PostGIS in Action
this week in the
JDBC and Relational Databases
Java Advanced Topics Training
Java in General
Content is not allowed in prolog
Joined: May 04, 2004
Nov 17, 2008 20:04:00
When I am trying to send soapmessage created by saaj Api, I am getting the error saying "Content is not allowed in prolog". I tried to add prolog,after adding prolog(xml declaration) i am getting another error.
Any ideas would be of great help.
Thanks for all your help.
Author and all-around good cowpoke
Joined: Mar 22, 2000
Nov 18, 2008 07:06:00
If this was my problem I would use SOAPui or TCPMON to capture the exact text of the message. It could be as simple as a single leading space before the <?xml declaration.
I agree. Here's the link:
subject: Content is not allowed in prolog
ADMIN , NODE MANAGED SERVER ERROR
xml parer error
[Fatal Error] :1:1: Content is not allowed in prolog.
Solution fro the error:org.xml.sax.SAXParseException- Content is not allowed in prolog.
"Content is not allowed in prolog" issues was 6 to was7.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015