I&#39;m trying to use interceptors in conjuntion with webservices on AS 7.1.1.Final as the example shows below. The interceptor intercepts well until it is combined with @WebService. Is this supposed to work? Am I missing something?<br>
<br>----Binding---<br>@InterceptorBinding<br>@Target({METHOD, TYPE})<br>@Retention(RUNTIME)<br>@Inherited<br>public @interface SomeInterceptorBinding { }<br><br>---Interceptor---<br>@SomeInterceptorBinding<br>@Interceptor<br>
public class SomeInterceptor {<br>  @AroundInvoke<br>    public Object handle(InvocationContext ctx) throws Exception {<br>        return ctx.proceed();<br>    }<br>}<br><br>---WebService---<br>@SomeInterceptorBinding<br>
@WebService<br>public class AWebService {<br>  @WebMethod<br>  public void someMethod() {<br>    ...<br>  }<br>}<br><br>---beans.xml---<br>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>&lt;beans ...&gt;<br>
  &lt;interceptors&gt;<br>    &lt;class&gt;com.xyz.SomeInterceptor&lt;/class&gt;<br>  &lt;/interceptors&gt;<br>&lt;/beans&gt;<br><br><br>