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 2238111EF6 for ; Tue, 29 Jul 2014 06:15:04 +0000 (UTC) Received: (qmail 8495 invoked by uid 500); 29 Jul 2014 06:15:03 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 8453 invoked by uid 500); 29 Jul 2014 06:15:03 -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 97671 invoked by uid 99); 29 Jul 2014 06:07:47 -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: Mon, 28 Jul 2014 23:07:05 -0700 (PDT) From: Jaishankar To: users@camel.apache.org Message-ID: <1406614025233-5754549.post@n5.nabble.com> Subject: 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 If the exchange has soap fault how to capture the message in it? *I tried this way* Exchange exchangeNew = producerTemplate.send("cxf:bean:TransactionBegin", exchange); SoapFault soapFaultException = exchangeNew .getOut().getBody(SoapFault.class); *Error Message* Failed delivery for (MessageId: I D-gdjb01vd-33915-1406546122662-166-3 on ExchangeId: ID-gdjb01vd-33915-1406546122662-166-2). Exhausted after delivery attempt: 1 caught: org.apache.cxf.binding.soap.Soap Fault: "DISTRICT CODE NOT ON FILE " org.apache.cxf.binding.soap.SoapFault: "message ---- " at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.unmarshalFault(Soap11FaultInInterceptor.java:75)[158:org.apache.cxf.cxf-rt-bindings-soap:2.6 .0.redhat-60024] I need to handle this fault in the exchange and get faultcode and faultstring. -- View this message in context: http://camel.465427.n5.nabble.com/Handle-SOAP-fault-message-tp5754549.html Sent from the Camel - Users mailing list archive at Nabble.com.