Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6E27A1767F for ; Wed, 22 Oct 2014 11:04:43 +0000 (UTC) Received: (qmail 73618 invoked by uid 500); 22 Oct 2014 11:04:43 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 73568 invoked by uid 500); 22 Oct 2014 11:04:43 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 73555 invoked by uid 99); 22 Oct 2014 11:04:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Oct 2014 11:04:42 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Oct 2014 11:04:38 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1XgtiC-00029h-TO for users@camel.apache.org; Wed, 22 Oct 2014 04:04:16 -0700 Date: Wed, 22 Oct 2014 04:04:16 -0700 (PDT) From: ABouchama To: users@camel.apache.org Message-ID: <1413975856905-5757897.post@n5.nabble.com> In-Reply-To: <1413967144394-5757884.post@n5.nabble.com> References: <1407852704318-5755111.post@n5.nabble.com> <1413967144394-5757884.post@n5.nabble.com> Subject: Re: How do i control my soap foult back to the client ? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Here's how we generate a SOAP Fault: public void process(Exchange exchange) throws Exception { // Setup the SOAP fault SoapFault fault = buildFault(exchange); fault.setFaultCode(Soap11.getInstance().getSender()); //B2BException_Exception fault = buildFault(exchange); exchange.getOut().setHeaders(exchange.getIn().getHeaders()); exchange.getOut().setBody(fault); exchange.getOut().setFault(true); } -- View this message in context: http://camel.465427.n5.nabble.com/How-do-i-control-my-soap-foult-back-to-the-client-tp5755111p5757897.html Sent from the Camel - Users mailing list archive at Nabble.com.