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 405EC1127D for ; Tue, 29 Jul 2014 08:09:44 +0000 (UTC) Received: (qmail 40021 invoked by uid 500); 29 Jul 2014 08:09:43 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 39980 invoked by uid 500); 29 Jul 2014 08:09: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 Delivered-To: moderator for users@camel.apache.org Received: (qmail 28058 invoked by uid 99); 29 Jul 2014 08:06:53 -0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of jayashankar.c43@wipro.com does not designate 216.139.236.26 as permitted sender) Date: Tue, 29 Jul 2014 01:06:26 -0700 (PDT) From: Jaishankar To: users@camel.apache.org Message-ID: <1406621186860-5754563.post@n5.nabble.com> In-Reply-To: References: <1406614025233-5754549.post@n5.nabble.com> <1406616389313-5754554.post@n5.nabble.com> Subject: Re: Handle SOAP fault message MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi arnaudeprez, I'm not able to catch in catch block of code. I dont know how to implement with other two methods. *Here is my code* private void invokeTransactionBegin(Exchange exchange) { if (exchange == null) { return; } ProducerTemplate producerTemplate = exchange.getContext().createProducerTemplate(); OperationContext operationContext = new OperationContext(); operationContext.set.. exchange.getIn().setHeader(CxfConstants.OPERATION_NAMESPACE,"---"); exchange.getIn().setHeader(CxfConstants.OPERATION_NAME, "begin"); exchange.getIn().setBody(operationContext); try { producerTemplate.start(); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } try { Exchange exchangenew = producerTemplate.send("cxf:bean:TransactionBegin", exchange); MessageContentsList contents = exchangenew.getOut().getBody(MessageContentsList.class); LOG.info("transactionID " + contents.get(0)); } catch (Exception exception) { LOG.info("Handle Soap fault " + exception.getMessage()); } try { producerTemplate.stop(); } catch (Exception e) { LOG.info("Exception " + e.getMessage()); } } In the exchangenew I'm getting Soapfault response and its not catching in catch block of code. Please look into the code and give me response ASAP. -- View this message in context: http://camel.465427.n5.nabble.com/Handle-SOAP-fault-message-tp5754549p5754563.html Sent from the Camel - Users mailing list archive at Nabble.com.