You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by David Hay <da...@enstratius.com> on 2015/03/25 19:58:59 UTC

Expose interceptor exceptions in SOAP client

Hi,

We have an interceptor on the server side, that can throw a security
exception.

However, the SOAP method signatures don't declare it, so it is not
available in the client.

We'd like to avoid having to add it to all our web methods - is there a way
to add a custom client interceptor that exposes the exception to the
calling method?  We tried, but it seems that the JaxWsClientProxy still
examined the declared exceptions on the method in order to throw the
exception contained in the Fault?

cheers

David

Re: Expose interceptor exceptions in SOAP client

Posted by David Hay <da...@enstratius.com>.
any ideas?

On Wed, Mar 25, 2015 at 2:58 PM, David Hay <da...@enstratius.com> wrote:

> Hi,
>
> We have an interceptor on the server side, that can throw a security
> exception.
>
> However, the SOAP method signatures don't declare it, so it is not
> available in the client.
>
> We'd like to avoid having to add it to all our web methods - is there a
> way to add a custom client interceptor that exposes the exception to the
> calling method?  We tried, but it seems that the JaxWsClientProxy still
> examined the declared exceptions on the method in order to throw the
> exception contained in the Fault?
>
> cheers
>
> David
>
>