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 66FC79A74 for ; Wed, 4 Apr 2012 18:37:03 +0000 (UTC) Received: (qmail 35552 invoked by uid 500); 4 Apr 2012 18:37:02 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 35503 invoked by uid 500); 4 Apr 2012 18:37:02 -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 35495 invoked by uid 99); 4 Apr 2012 18:37:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Apr 2012 18:37:02 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 216.139.236.26 is neither permitted nor denied by domain of eric.bender@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Apr 2012 18:36:57 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1SFV4P-0006pE-12 for users@camel.apache.org; Wed, 04 Apr 2012 11:36:37 -0700 Date: Wed, 4 Apr 2012 11:36:37 -0700 (PDT) From: Castyn To: users@camel.apache.org Message-ID: <1333564597016-5618665.post@n5.nabble.com> Subject: Detecting SOAP Faults MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I currently have a custom processor setup within a route that does the following public class SoapFaultDetectionProcessor implements Processor { public void process(Exchange exchange) throws Exception { if(exchange.getIn().isFault()) { SoapFault fault = exchange.getIn().getBody(SoapFault.class); System.out.println(fault.getMessage()); } } } This processor immediately follows a CXF Producer in POJO mode. I am having the service generate a soap fault, but for some reason the isFault() call always remains false. 1) Am I not using this properly or 2) Is there a better way to capture and manipulate / display SOAP faults (for logging purposes and such) -- View this message in context: http://camel.465427.n5.nabble.com/Detecting-SOAP-Faults-tp5618665p5618665.html Sent from the Camel - Users mailing list archive at Nabble.com.