Hi,

I have the following flow:

http (non-soap) consumer > camel > saxon > http:soap-provider

My http (non-soap) consumer has a custom marshaler which can accept GET
requests containing query string parameters.  I extract the query parameters
and create an adhoc xml body using the parameter values and set the xml as
my message body.  This was my workaround to allow GET requests from clients.

Now, I want to be able to do some validations on the query parameters.  I
want to be able to return an html response back to the client with a
meaningful message if the validations fail. ex. no parameters passed.  

How do I go about doing this and can it all be done inside my marshaler?  If
there are more elegant alternatives to providing meaningful error messages
please feel free to advise.  Thanks.
-- 
View this message in context: 
http://www.nabble.com/How-to-return-an-HTML-message-on-validation-failure-from-custom-marshaler-tp22732504p22732504.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to