Is there a way to intercept method calls to a web service? My config for web services looks something like this:
The trouble seems to be that the "abstract=true" attribute makes the EventService object a bad target for the ProxyFactoryObject as in:Code:<object name="EventService" type="Event.EventService, WebService" abstract="true"/> <object id="EventServiceExporter" type="Spring.Web.Services.WebServiceExporter, Spring.Web"> <property name="TargetName"><value>EventService</value></property> ... </object>
Making the EventServiceProxy object abstract to statisfy the WebServiceExporter is not possible.Code:<object id="EventServiceProxy" type="Spring.Aop.Framework.ProxyFactoryObject, Spring.Aop"> <property name="TargetName"><value>EventService</value></property> <property name="IsSingleton"> <value>true</value> </property> <property name="interceptorNames"> <list> ... </list> </property> </object> <object name="EventService" type="Event.EventService, WebService" abstract="true"/> <object id="EventServiceExporter" type="Spring.Web.Services.WebServiceExporter, Spring.Web"> <property name="TargetName"><value>EventServiceProxy</value></property> ... </object>
I made one other try, by trying to ProxyFactoryObject the WebServiceExporter as in:
That attempt seemed to be thwarted as well.Code:<object id="EventServiceProxy" type="Spring.Aop.Framework.ProxyFactoryObject, Spring.Aop"> <property name="TargetName"><value>EventServiceExporter</value></property> <property name="IsSingleton"> <value>true</value> </property> <property name="interceptorNames"> <list> ... </list> </property> </object> <object name="EventService" type="Event.EventService, WebService" abstract="true"/> <object id="EventServiceExporter" type="Spring.Web.Services.WebServiceExporter, Spring.Web"> <property name="TargetName"><value>EventService</value></property> ... </object>
Is there a way to do this?
Best regards,
Steve


Reply With Quote
Not only are you using "yet-to-be-released" WebServiceExporter, but you want to apply aspects to it as well...