camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From L F <>
Subject Generating SoapFault from Spring DSL
Date Fri, 20 Feb 2015 09:04:16 GMT
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" />
            <setOutHeader headerName="Exchange.HTTP_RESPONSE_CODE">
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?

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