On 3/2/07, C. Boyden <[EMAIL PROTECTED]> wrote:

Hello,

I have an HTML Form Post front-end creating an event that I would like to
pass through the NMR to various endpoints. I am getting an error:

javax.jbi.messaging.protocol.headers: null
[Fatal Error] :1:1: Content is not allowed in prolog.

I am pretty sure that this is because it is taking my "Content-Type:
application/x-www-form-urlencoded" and trying to whip it across the NMR
without any transformation to XML first.

How do I fix this? (And) If this is not the problem, any ideas what is?

The error is because the default marshaler doesn't know how to handle
the content. But adding the ability to handle this case shouldn't be
very difficult at all.

I'm assuming that you've deployed a servicemix-http service unit
configured to fulfill the consumer role. If this is the case, then the
problem is that the DefaultHttpConsumerMarshaler will not handle that
content type. Marshalers are used to transform message content to/from
XML so that it can be stuffed into/extracted from a NormalizedMessage.

To handle this case, a marshaler will need to be added to the
servicemix-http component in the org.apache.servicemix.http.endpoints
package so that it can be configured in the servicemix-http service
unit configuration. See the DefaultHttpConsumerMarshaler and the
SerializedMarshaler for examples.

Bruce
--
perl -e 'print unpack("u30","D0G)[EMAIL 
PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/

Reply via email to