Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CXF interceptors, SoapFaults, and custome exceptions

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.





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


Still-learning Steve
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic