camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From L F <l891...@yahoo.com.INVALID>
Subject Generating SoapFault from Spring DSL
Date Fri, 20 Feb 2015 09:04:16 GMT
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


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message