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 2AD33D392 for ; Tue, 6 Nov 2012 23:37:17 +0000 (UTC) Received: (qmail 18289 invoked by uid 500); 6 Nov 2012 23:37:16 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 18256 invoked by uid 500); 6 Nov 2012 23:37:16 -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 18244 invoked by uid 99); 6 Nov 2012 23:37:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Nov 2012 23:37:16 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of christian.mueller@gmail.com designates 209.85.216.173 as permitted sender) Received: from [209.85.216.173] (HELO mail-qc0-f173.google.com) (209.85.216.173) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Nov 2012 23:37:11 +0000 Received: by mail-qc0-f173.google.com with SMTP id b12so796349qca.32 for ; Tue, 06 Nov 2012 15:36:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=zuGoSJ+PDN948zvo9BP4/KgCsGdnhY0tjpqc9jeRkxY=; b=BD6B9Im3OsAfJ2D7n4Rw6qIAEbGpF6WAXNOIk8XXN+DptY7PAoADRMqFiXpRhBina+ vzoYSR46m3Yi8QIJO0D94BwSJbZqBsekSwowPNAZI/S11A3A9Eam9vZ7xgefSniP8aez Qo1YQ1f9ZQMlzgsZxe/xZ+FLqiJwksiYpSsHHpKHdjwctR65u8/ZpxVNJK7Nt7g56lNH LWlOHjF7uENsw4PYgmarPhUSzn7mYT/N2EZA5As/ArQEYx1gptwsNONUo1krvFBxCXLX pyIyxbqZXza6XK6eFTA81qT/DSM9llqkpvVrZgk+gF1j0kTkdPxS9FDvAnCvav3QCBmz 8cDw== MIME-Version: 1.0 Received: by 10.224.186.145 with SMTP id cs17mr4234416qab.91.1352245011059; Tue, 06 Nov 2012 15:36:51 -0800 (PST) Received: by 10.49.63.9 with HTTP; Tue, 6 Nov 2012 15:36:51 -0800 (PST) Received: by 10.49.63.9 with HTTP; Tue, 6 Nov 2012 15:36:51 -0800 (PST) In-Reply-To: <1352216177986-5722235.post@n5.nabble.com> References: <1352207386064-5722219.post@n5.nabble.com> <71AA771850BD40C68B95D7FE0A30FE54@gmail.com> <1352216177986-5722235.post@n5.nabble.com> Date: Wed, 7 Nov 2012 00:36:51 +0100 Message-ID: Subject: Re: CXF SOAP Fault handling From: =?ISO-8859-1?Q?Christian_M=FCller?= To: users@camel.apache.org Content-Type: multipart/alternative; boundary=485b397dd4d988932d04cddc13bf X-Virus-Checked: Checked by ClamAV on apache.org --485b397dd4d988932d04cddc13bf Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Will the "onException" definition work for you? There you can handle the exception (e.g. execute an alternative route) and abord the routing or continue the normal routing. Sent from a mobile device Am 06.11.2012 16:36 schrieb "vpd" : > Thanks Willem for your quick response. We tried with no error handler but > even then routing aborted once SOAP fault is thrown. > > I feel that I haven't provided the context clearly. Hence described below= . > > We have a web service, which can return proper business fault or > can raise > an exception as depicted in the below SOAP Responses. In CFX, is their wa= y > to differentiate the BUSINESS FAULT from an Exception? > As I understood, CFX treats all SOAP Fault responses as Exceptions and > aborts the chain. > > Response 1 : Business Fault > xmlns:SOAP-ENV=3D"http://schemas.xmlsoap.org/soap/envelope/ " > xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance "> > > > SOAP-ENV:Server > BAD ALBUM > > > > > > > > > > Response 2 : Exception > xmlns:SOAP-ENV=3D"http://schemas.xmlsoap.org/soap/envelope/ " > xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance "> > > > SOAP-ENV:Server > javax.ejb.EJBException: ASJ.ejb.005044 (Failed in > component: sap.com/Test2WSEAR) Exception raised from invocation of public > test.OrderItunes > test.ReceiveOrderTest2ImplBean.receiveOrderTest(test.OrderTest) throws > test.FMT2_Exception,test.FMT1_Exception method on bean instance > test.ReceiveOrderTest2ImplBean@7846c638 for bean > > sap.com/Test2WSEAR*annotation|Test2WS.jar*annotation|ReceiveOrderTest2Imp= lBean > in application sap.com/Test2WSEAR.; nested exception is: > java.lang.RuntimeException: REALLY BAD SINGER!! > > > xmlns:yq1=3D"http://sap-j2ee-engine/client-runtime-error > ">javax.ejb.EJBException: > > =85. > > > > > > If I have a route like this > > > > > > > If the first cfx endpoint (cfx:bean:beanName) for invoking the web servic= e, > returns a business fault, I want to extract structure under and > pass it on the next processing(component:other). How it can be achieved? > Currently, when a SOAP FAULT, occurs, CXF sets an Exception to the Exchan= ge > and the camel pipeline will not move to the next processor. > (Soap11InFaultInterceptor sets the exception to Exchange.) > > -- vpd. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/CXF-SOAP-Fault-handling-tp5722219p57222= 35.html > Sent from the Camel - Users mailing list archive at Nabble.com. > --485b397dd4d988932d04cddc13bf--