Hi
I'm trying to implement a webservice operation as a camel route (spring DSL),
and I'd like to generate a soap fault from the route, when some condition is
met. I created a route which should prepare this soap fault :
<route id="SendErrorResponse">
<from uri="direct:SendErrorResponse"/>
<to uri="xslt:xsl/octopusfault/MakeExceptionResponse.xsl" />
<to uri="xslt:xsl/AddOctNamespace.xsl" />
<setFaultBody>
<simple>${body}</simple>
</setFaultBody>
<setOutHeader headerName="Exchange.HTTP_RESPONSE_CODE">
<constant>500</constant>
</setOutHeader>
</route>
but instead of a soap fault i get a normal soap response, and http response
code is "HTTP/1.1 200 OK"
Is there something else that i have to add?
Regards,
LAji