On 07.07.2006, at 16:08, Doug Fischer wrote:
I have an HTTP binding component that pushes all messages to a content based router. When I post an XML message to this component through code it works just fine however when I try to POST the exact same message to it through a simple web page that simply contains a text box for the URL, a text area for
the message, and a submit button I get the following error:

javax.xml.transform.TransformerException: org.xml.sax.SAXParseException:
Content in not allowed in prolog.

Can anyone tell me why I am getting this error?

Even though I know next to nothing about ServiceMix (just subscribed a few hours ago - hi everybody), I do know that that's a common exception thrown by the XML parser. The parser is trying to tell you that something's wrong with your XML. The problem is often caused by unicode files containing a byte order mark at the beginning (produced by notepad for example), but it sounds like that can be ruled out in your case. Maybe there's a blank in front of the XML header ("<?xml version="1.0" encoding="UTF-8"?>")?

Could you post the XML received by your component?

Cheers,
-Ralph.


Reply via email to