Alistair
06-11-2005, 01:07 PM
Hi
This isn't really tied to Spring directly, but I am interested in anyone's opinion about how I am going about defining web services. I've looked at the web services exporter code in Spring and am interested but probably won't seriously considered it until the 0.7 release is done.
In our current application architecture, web service calls are delegated to COM+ serviced components for implementation (which in turn are delegated to POCOs through Spring). This is because we want COM+ declarative transaction management across all our service implementations.
I have found that I can add the [WebMethod] attributes directly to the ServicedComponent along side the [Transaction...] attributes and then simply change the .ASMX file to list the ServicedComponent as the Class attribute (rather than the default code behind class). The ServicedComponent is activated as a Library application and everything works great. The ServicedComponent implements a "service" interface which I intend on using in the client with the Spring WebServiceHandlerFactory to be able to access the proxy via an interface.
This approach saves having a code behind file that has to explicitly delegate to ServicedComponent.
I've not been able to find any references on the web to others doing this. Does anyone see any problem with this approach?
Thanks
Alistair
This isn't really tied to Spring directly, but I am interested in anyone's opinion about how I am going about defining web services. I've looked at the web services exporter code in Spring and am interested but probably won't seriously considered it until the 0.7 release is done.
In our current application architecture, web service calls are delegated to COM+ serviced components for implementation (which in turn are delegated to POCOs through Spring). This is because we want COM+ declarative transaction management across all our service implementations.
I have found that I can add the [WebMethod] attributes directly to the ServicedComponent along side the [Transaction...] attributes and then simply change the .ASMX file to list the ServicedComponent as the Class attribute (rather than the default code behind class). The ServicedComponent is activated as a Library application and everything works great. The ServicedComponent implements a "service" interface which I intend on using in the client with the Spring WebServiceHandlerFactory to be able to access the proxy via an interface.
This approach saves having a code behind file that has to explicitly delegate to ServicedComponent.
I've not been able to find any references on the web to others doing this. Does anyone see any problem with this approach?
Thanks
Alistair