After collecting advice from several list members and CXF team members,
I wrote a custom SOAPFaultOutInterceptor to add some information into
any exceptions thrown from within my web methods.  I now find, though,
that I can't seem to control whether my client ends up catching a
SOAPFaultException or a SoapFault.  The actual SOAP responses are
identical, thanks to my interceptor, but it seems that if the web method
in question is defined as throwing an exception the CXF client-side code
throws a SoapFault, whereas if there's no "throw" clause it throws a
SOAPFaultException.  The SOAPFaultExceptions I can work with - meaning I
can extract the details that I added on the server side from them on the
client, but I can't get at any of that information - even though it's in
the message - from a SoapFault.

Any advice will be appreciated.

Michael

 

Reply via email to