wood burning stoves 2.0*
The moose likes Web Services and the fly likes Content is not allowed in prolog Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Content is not allowed in prolog" Watch "Content is not allowed in prolog" New topic
Author

Content is not allowed in prolog

Lakshmi Kalidindi
Greenhorn

Joined: May 04, 2004
Posts: 14
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.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
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.

Bill
 
wood burning stoves
 
subject: Content is not allowed in prolog
 
Similar Threads
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.
ADMIN , NODE MANAGED SERVER ERROR
"Content is not allowed in prolog" issues was 6 to was7.