spmva
09-06-2005, 03:04 PM
Is there a way to intercept method calls to a web service? My config for web services looks something like this:
<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>
The trouble seems to be that the "abstract=true" attribute makes the EventService object a bad target for the ProxyFactoryObject as in:
<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>
Making the EventServiceProxy object abstract to statisfy the WebServiceExporter is not possible.
I made one other try, by trying to ProxyFactoryObject the WebServiceExporter as in:
<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>
That attempt seemed to be thwarted as well.
Is there a way to do this?
Best regards,
Steve
<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>
The trouble seems to be that the "abstract=true" attribute makes the EventService object a bad target for the ProxyFactoryObject as in:
<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>
Making the EventServiceProxy object abstract to statisfy the WebServiceExporter is not possible.
I made one other try, by trying to ProxyFactoryObject the WebServiceExporter as in:
<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>
That attempt seemed to be thwarted as well.
Is there a way to do this?
Best regards,
Steve