camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "S. Ali Tokmen" <savas-ali.tok...@bull.net>
Subject Re: CXF consumer: fault handling
Date Thu, 05 Aug 2010 11:36:39 GMT
Hello

On 05/08/2010 13:30, Claus Ibsen wrote:
> Just out of ignorance of looking into CXF. But I would assume there
> would be some Exception ->  Fault mapping you can leverage.
> Its frankly very common to use exceptions in Java. And if you have a
> wsdl contract with X faults then you may want to map various thrown
> exceptions to appropriate faults.
>
> Just wondering if such feature exists.
>    

That's exactly what the @WebFault annotation does: it is placed on a 
class that extends Exception and tells which XML namespace and name this 
Exception maps to.

Hence, it becomes clear what is the XML correspondance for this Java 
Exception.

Cheers

S. Ali Tokmen
savas-ali.tokmen@bull.net

Office: +33 4 76 29 76 19
GSM:    +33 66 43 00 555

Bull, Architect of an Open World TM
http://www.bull.com



Mime
View raw message