I wondering if it's possible to add additional advice to the JaxWsPortProxyFactoryBean.
I want to execute "After Throwing" advice on my JaxWsPortProxyFactoryBean in order to capture certain exceptions being thrown from the web service interface.
Is this the way to handle this??
I looked through the source code and it seems like the best way to do this would be to add more advice on the proxyfactory which is actually being created by the JaxWsPortFactoryBean.
I was under the assumption I could just add another pf.addAdvice(myAfterThrowingAdviceObject). From the javadocs that call should add the Advice and make it available to all method calls within the proxy. I created something similar and the advice I'm adding to the proxy factory is a spring managed after throwing advice pojo.
ProxyFactory pf = new ProxyFactory();
this.serviceProxy = pf.getProxy(this.beanClassLoader);
The only problem is this advice never gets called...ever.
The proxy being created is a JDK proxy.