public void invoke(Endpoint ep, Invocation epInv) throws Exception { try { Object targetBean = getTargetBean(ep, epInv); InvocationContext invContext = epInv.getInvocationContext(); WebServiceContext wsContext = invContext.getAttachment(WebServiceContext.class); if (wsContext != null) { ResourceInjector injector = resourceInjectorFactory.newResourceInjector(); injector.inject(targetBean, wsContext); } Method method = getImplMethod(targetBean.getClass(), epInv.getJavaMethod()); Object retObj = method.invoke(targetBean, epInv.getArgs()); epInv.setReturnValue(retObj); } catch (Exception e) { handleInvocationException(e); } }
super.invoke(ep, epInv);
super.invoke(ep, epInv);
public void invoke(Endpoint ep, Invocation epInv) throws Exception { try { Object targetBean = getTargetBean(ep, epInv); InvocationContext invContext = epInv.getInvocationContext(); WebServiceContext wsContext = invContext.getAttachment(WebServiceContext.class); if (wsContext != null) { ResourceInjector injector = resourceInjectorFactory.newResourceInjector(); injector.inject(targetBean, wsContext); } Method method = getImplMethod(targetBean.getClass(), epInv.getJavaMethod()); Object retObj = method.invoke(targetBean, epInv.getArgs()); epInv.setReturnValue(retObj); } catch (Exception e) { handleInvocationException(e); } }