• Post Reply Bookmark Topic Watch Topic
  • New Topic

CXF interceptors, SoapFaults, and custome exceptions  RSS feed

 
Stuart Rogers
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greetings all,

I'm trying to modify my CXF/Spring based SOAP web service into using interceptors
to capture SoapFaults and convert them into custom exceptions. The goal here is
to present a web client with only instances of my custom exception class when
things go wrong, never a SoapFault.

This is what I've managed to scrape together so far. You'd think there'd be more
on proper error handling in the various tuts and books , oh well.

FormsEndpointException


FormsEndpointImpl


MyExceptionInterceptor


application-context.xml


Question is, what needs to go into handleFault() to throw a new instance of MyException?

TIA,


Still-learning Steve
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!